Springboot provides a hot deployment that requires adding dependencies:
<dependency> <groupId> org.springframework.boot</groupid> <artifactId> Spring-boot-devtools</artifactid> <optional>true</optional>//indicates that the dependency does not pass </ Dependency>
Restart when the file triggers Ctrl + S or the idea class file triggers the build when the Eclipse class path is triggered
auto-trigger reboot : Compile plugin needs to add fork = True
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>//Does not trigger automatic restart
</configuration>
</plugin>
Note: If the idea tool is set for automatic compilation, then no fork will trigger an automatic restart
The setup steps are as follows:
1) Make project automatically, compiler, settings
2) shift+ctrl+alt+/, registry, compiler.automake.allow.when.app.running, check
Second, Spring-boot-devtools Heat deployment