Introduction :Spring provides developers with a module called Spring-boot-devtools to enable the spring boot application to support hot deployment and increase developer productivity without having to manually restart the spring boot application.
Second, the configuration:
Pom.xml
<Dependency> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-devtools</Artifactid> <Optional>True</Optional></Dependency><plugin> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-maven-plugin</Artifactid> <Configuration> <Fork>True</Fork> <!--Devtools does not take effect if the configuration is not in place - </Configuration></plugin>
Idea Configuration
1. Select File->settings->compiler->build Project automatically
2. Shortcut CTRL + Shift +a Input registry, tick Compiler Automake allow when app running
Springboot's Heat deployment