jrebel + Eclipse + tomcat 實現熱部署

  jrebel 6.1.0 使用方法


總體的思路就是:下載官方的Eclipse插件  然後再指定javaagent等於破解版的jrebel.java路徑

1:下載官方的Eclipse插件 在eclipse marketplace 裏面下載 jrebel  我下載的是 5.6.1 裏面包含了三個基本的插件

2:破解版的jrebel.jar 網上自己搜索 很多 。解壓後的目錄爲D:\jrebel

3:指定javaagent的值  看圖  在就rebel config center 裏面 在overview plug-ins advanced 一欄中 點擊advanced 就會看到jrebel agent 選擇other jrebel.jar 選擇破解版jrebel.jar的位置

4:在overview中 選擇好服務器類型 勾選服務器

5:在server中選擇好這兩個   同時在tomcat的conf/server.xml 中將context的reloadable設爲false。爲true的時候 就是重啓tomcat,這就會很不爽

 

6:tomcat啓動時 參數的傳入中設置


7:將特定的project添加jrebel nature 

選中project 右擊 選擇jrebel  選擇 add jrebel nature  就會生成一個文件rebel.xml 裏面配置着 jrebel對當前project監控的路徑 然後裏面有${}包含的參數 這個是在jrebel config center 裏面 查看到

做完以上工作 我是可以了 你了?




發佈了61 篇原創文章 · 獲贊 6 · 訪問量 12萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章