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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章