1. Add dependencies to the pom file
<!--Add hot deployment dependencies--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency>
2. Modify the pom file
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>//Must be written, otherwise it will not work
</configuration>
</plugin>
</plugins>
</build>
3. Under file-setting
4. shift+ctrl+alt+/
4. Just restart the project