Intellij IDEA 使用jrebel运行spring-boot并实现自动编译进行热部署

在使用jrebel运行spring-boot的时候,会发现一个很棘手的问题,就是项目不能自动编译,不能自动编译就不能实现热部署。(使用jar包方式运行的时候)
那么我们就要解决自动编译的问题,首先:

1、勾选上Build project automatically

Intellij IDEA 使用jrebel运行spring-boot并实现自动编译进行热部署

2、按组合键 Shift+Ctrl+Alt+/,选择Registry

Intellij IDEA 使用jrebel运行spring-boot并实现自动编译进行热部署

3、勾选上compiler.automake.allow.when.app.running

Intellij IDEA 使用jrebel运行spring-boot并实现自动编译进行热部署

4、使用jrebel debug模式重新运行你的项目,更改html或者类的时候,idea就会自动的编译了。

转载请注明出处: 桑博:http://blog.****.net/cutelittlebo/article/details/77522062