idea spring boot 热部署 (真正的不需要重启)Jrebel License 免费激活Jrebel

IDEA版本 2017.2.4  Jrebel 版本7.1.6

1、开启idea自动make功能 


2、CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running 



3.Jrebel 安装   图中我的已安装 状态


4 license server  搭建

    license server 程序 下载地址 :   https://gitee.com/gsls200808/JrebelLicenseServerforJava/

    

选择 dowload zip 下载完成后解压   

 MainServer.java 中 可修改运行端口 如 : Server server = new Server(8036);  

 进入根目录  :
 cd /path

maven 运行 :
mvn compile 

mvn exec:java -Dexec.mainClass="com.vvvtimes.server.MainServer" 

由于idea  jrebel 每次运行都会校验 所以 license server 需要实时启动 ,  linux下可在控制台添加&让程序在后台运行

运行成功后 访问本机 显示如下内容


5. 在第6部的操作中 , Jrebel 会提示你激活,激活方法如下 


上图中邮箱可随便填写

6.在项目中添加rebel.xml


7.选择要运行的spring boot 应用 JRebel  点击 run 或 debug


8. 验证是否可成功热部署 

项目运行状态 下 新建 TestControll 添加相应方法 





9. 谢谢观看,微信打赏





发布了13 篇原创文章 · 获赞 0 · 访问量 7131

猜你喜欢

转载自blog.csdn.net/qdtengcs/article/details/79413638