Two steps:
One, 1, CTRL + SHIFT + A--Find make Project automatically---check
2. CTRL + SHIFT + A--Find registry--Find and tick compiler.automake.allow.when.app.running
Finally, restart idea.
Second, the use of spring-boot-1.3 to start with the thermal deployment function
1. Add Maven Dependency
XML code <dependency> <groupId>org.springframework.boot</groupId> <ARTIFAC Tid>spring-boot-devtools</artifactid> <optional>true</optional> </dependen Cy>
2. Open Hot Deployment
XML code <build> <plugins> <plugin> <groupid >org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> < configuration> <fork>true</fork> </configuration> </plugin> </plugins> </build>
Third, Chrome disables caching
F12 (or Ctrl+shift+j or ctrl+shift+i)--NetWork-to-Disable Cache (while DevTools is open)
At this point, in idea can be happy to modify the code, the changes can be timely to see the effect, no need to manually restart and clear the browser cache