在使用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.csdn.net/cutelittlebo/article/details/77522062

相关文章:

  • 2021-05-05
  • 2021-10-24
  • 2022-12-23
  • 2021-08-30
  • 2021-08-19
猜你喜欢
  • 2021-10-31
  • 2021-06-26
  • 2021-10-26
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案