MAVEN automatic compilation configuration
Hot deploy function
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
Spring Boot's Plugin configuration can automatically package applications as war or jar applications. add build-plugin
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
For Eclipse, it also needs to
project
beBuild Automatically
enabled in .
There is generally no problem in normal operation, but when the package is not available or has problems, it often leads to the failure of hot deployment. You need to delete the problematic package from Libraries in the Java Build Path of the current project and download it again.