❶ Idea配置jrebel怎么不能实现自动部署
Idea配置jrebel不能实现自动部署的原因:
1、JRebel 和自动部署没有任何关系,JRebel 是用来做HotSwap的,
2、即当类变化后重新加载到JVM里的,Tomcat要用的话,需要在Tomcat的启动参数里配置JRebel。
❷ jrebel在myeclipse下配置tomcat热部署出错
异常信息提示那个类里没有对应的方法,请检查方法名、方法参数和类实例是否正确。
❸ eclipse中的jrebel怎么用
一、安装包准备
1. Jrebel.jar 核心JAR包,http://zeroturnaround.com/jrebel/prev-releases/ 上面进行下载。
安装 JRebel Eclipse插件进入 Help » Install New Software... 并且输入下面的URL :http://www.zeroturnaround.com/update-site/
2. update-site.zip jrebel Eclipse插件http://www.zeroturnaround.com/update-site/update-site.zip
二、配置Eclipse
(1)、Eclipse中配置 window->preference->tomcat->JVM Settings,加入以下参数
-Drebel.spring_plugin=true 支持spring框架
-Drebel.aspectj_plugin=true 支持aspectj
-Drebel.struts2_plugin=true 支持strut2
-javaagent:D:/jrebel.jar 这里自行修改jrebel.jar正确的路径
-Drebel.dirs=F:/Project/test/WebContent/WEB-INF/classes,F:/Project/test/WebContent
-Dmyproject.root=D:/project/operamasks/workspaces/xxxx -Drebel.disable_update=true
-noverify
[(-javaagent 下载的jrebel.jar的路径,-Drebel.dirsc 项目的class文件的路径, -Dmyproject.root的值表示当前的需要热部署的工程路径)]
三、安装Eclipse插件
安装JRebel Eclipse 插件
Help » Install New Software
然后通过 如下 URL :http://www.zeroturnaround.com/update-site/
如果要离线下载的话,可以通过下载离线包的方式进行:http://www.zeroturnaround.com/update-site/update-site.zip
/**************************************************
jrebel 下载:
官网地址:http://www.zeroturnaround.com/jrebel/ (试用30天)
破解地址:http://dl.dbank.com/c086engzbb
**************************************************/
--------------------------------------------------------------
四、配置完上面后,还需要关闭tomcat的应用程序的reloadable设置
<Context path="/hello" reloadable="false
" docBase="D:/project" />
JReble log
如果你想选中Enable debug logging ,需要配置日志信息。点击Lauch JRebel Agent Settings ,可以选中Show JRebel message in standard output(在控制台输出打印),并且Log to file并且输出到日志文件中。 如果不设置日志路径,则可能会提示找不到日志的信息。点击Open JRebel agent,查看jrebel.properties,jrebel.info目录。