1 pom.xml file
Note: The hot deployment function is available starting from spring-boot-1.3
org.springframework.boot spring-boot-devtools true
Note: Add spring-boot-maven-plugin to the project, which is mainly used in eclipse. There is no need to add this configuration to the idea.
org.springframework.boot spring-boot-maven-plugin true
2 Change the idea configuration
1) “File” -> “Settings” -> “ Build,Execution,Deplyment" -> "Compiler", select "Build project automatically".
2) Key combination: "Shift Ctrl Alt /", select "Registry", check "compiler.automake.allow.when.app.running".
3 Chrome disables cache
F12 or "Ctrl Shift I", open the developer tools, select "Disable Cache (while DevTools is open)" under the "Network" tab
Recommended tutorial: "Java Tutorial"
The above is the detailed content of Detailed explanation of Spring Boot hot deployment Devtools. For more information, please follow other related articles on the PHP Chinese website!