idea整合jrebel热部署应用于springboot项目

目前也有很多关于jrebel热部署的文章了,我自己也有使用,但是还是经常会热部署失败,现在做一个整理,应该会有用

1.下载安装jrebel:

idea整合jrebel热部署应用于springboot项目

我这里已经安装好了,没安装好的是install标识,点击安装即可

2.**jrebel:

访问地址:https://my.jrebel.com/

使用facebook或者twitter账号登录进行注册,然后获取免费**码:

idea整合jrebel热部署应用于springboot项目

然后在idea中**jrebel:

idea整合jrebel热部署应用于springboot项目

3.修改idea的配置,使其能支持jrebel热部署:

第一处修改:

idea整合jrebel热部署应用于springboot项目

第二处修改:

使用快捷键:ctrl+shift+a,输入registry

idea整合jrebel热部署应用于springboot项目

然后选择这个打勾:

idea整合jrebel热部署应用于springboot项目

4.重启idea,然后选择下面的两个启动项目,就可以实现热部署了

idea整合jrebel热部署应用于springboot项目

或者:

idea整合jrebel热部署应用于springboot项目

当你修改了代码,保存后在控制台打印出如下类型的日志,就表示已经给你重新热部署了:

Rebel: Reloading class 'net.XXXX.XXXXX.XXX'.