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

IDEA版本 2017.2.4  Jrebel 版本7.1.6

1、开启idea自动make功能 

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

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

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


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

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

4 license server  搭建

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

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

选择 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下可在控制台添加&让程序在后台运行

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

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

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

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

上图中邮箱可随便填写

6.在项目中添加rebel.xml

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

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

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

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

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

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


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


9. 谢谢观看,微信打赏

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