When using Jrebel to run Spring-boot, you will find a very difficult problem, that is, the project can not be automatically compiled, can not be compiled automatically can not implement the hot deployment. (When running with the jar package)
Then we need to solve the problem of automatic compilation, first:
1. Tick on Build project automatically
2, press the combination key shift+ctrl+alt+/, select Registry
3, check the compiler.automake.allow.when.app.running
4. When you re-run your project using Jrebel debug mode, the idea will be compiled automatically when you change the HTML or the class.
Note: If you use the Maven plugin, you will automatically restart the project after each change
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
Intellij idea runs Spring-boot with Jrebel and implements automatic compilation for hot deployment