idea configured to automatically compile livereload

Add 1 pom in  spring-boot-devtools dependence

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

2 Change settings

选中 File->Setting –> Build, Execution, Deployment –> Compiler–>Build project automatically 

 

3   SHIFT+CTRL+A  enter the  registry  in the pop-up window

  Find compiler.automake.allow.when.app.running  tick

 

reference:

https://stackoverflow.com/questions/33349456/how-to-make-auto-reload-with-spring-boot-on-idea-intellij

https://www.mkyong.com/spring-boot/intellij-idea-spring-boot-template-reload-is-not-working/

Guess you like

Origin www.cnblogs.com/wolbo/p/11431699.html