❶ 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目錄。