一、軟件安裝
- ideaIU-12.1.1.exe 下載地址: http://www.jetbrains.com/idea/download/index.html
算號器:???要低調,用社區版吧,如果想用Ultimate版,自己找算號器吧。 - apache-tomcat-7.0.39(64)下載地址: http://www.apache.org/dist/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz
- JRebel5.2.2 破解文件下載地址: http://download.csdn.net/detail/furber/5305623
- JRebel安裝步驟:
安裝完ideaIU-12.0.exe之后,啟動IntelliJ IDEA 12.0,進入Configure->Plugins,找到JRebel Plugins並選中(如圖):
然后單擊Browse repositories...,找到JRebel Plugins右鍵Download and Install(如圖):
安裝完后,替換jrebel.jar:
copy jrebel.jar C:\Users\Administrator\.IntelliJIdea12\config\plugins\jr-ide-idea\lib\jrebel del/q C:\Users\Administrator\.jrebel\*.* copy jrebel.lic C:\Users\Administrator\.jrebel\jrebel.lic
pause
到此,安裝完成.
======================================================================================
二、開發web例子test測試熱部署安裝情況
1.Import Project
然后Artifacts路徑設置為:
配置Tomcat:
VM options:
輸入內容:
-Xms2048m
-Xmx2048m
-XX:MaxPermSize=4096m
-noverify
-javaagent:F:\開發環境\jrebel\jrebel5.2.2\jrebel.jar
-Drebel.spring_plugin=true
輸入Application context:demo,刪除Make和Build’demo:war exploded’ artifact->Apply,然后切換回Server選項卡,設置如下:
Apply->OK
到此,Tomcat設置完成。
接着用JRebel啟動tomcat
成功啟動后查看是否能進入斷點:
修改一下JAVA文件的內容,當焦點從Intellij IDEA移開時,CLASS文件重新加載了:
為了方便 使用大小寫轉換,需要安裝一個插件,安裝后可以方便的使用 alt+p 轉大寫alt+l轉小寫了,很方便 ,據說還可以alt+c首字母轉大寫: