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:
2 https://www.mkyong.com/spring-boot/intellij-idea-spring-boot-template-reload-is-not-working/