Prevent connection failures, make a backup, transfer from
Https://www.cnblogs.com/sprinkle/p/7058630.html
1 pom.xml File
Note : the thermal deployment feature spring-boot-1.3 started
<!--Add Dependency -<Dependency> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-devtools</Artifactid> <!--optional=true, dependencies are not passed, the project relies on Devtools, and projects that depend on myboot projects, if you want to use Devtools, need to reintroduce - <Optional>True</Optional></Dependency>
Note : Adding Spring-boot-maven-plugin to project is primarily used in eclipse, and it is not necessary to add this configuration in idea.
<Build> <Plugins> <plugin> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-maven-plugin</Artifactid> <Configuration> <Fork>True</Fork> </Configuration> </plugin> </Plugins></Build>
2 Changing the idea configuration
1) "File", "Settings", "Build,execution,deplyment", "Compiler", tick "Build Project automatically".
2) key combination: "shift+ctrl+alt+/", select "Registry", tick "compiler.automake.allow.when.app.running".
3 Chrome Disables caching
F12 or "Ctrl+shift+i", open developer tools, "Network" tab Check tick "Disable Cache (while DevTools is open)"
Spring-boot-devtools Hot deployment method in idea