Maven Auto-compile configuration
Thermal Deployment Features
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional></dependency>
Spring Boot's plugin configuration enables applications to be automatically packaged 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, you need to project
open it Build Automatically
in
Normal operation is generally no problem, but when the package does not have a problem, it often leads to a hot deployment failure. You need to remove the problematic package from the current project Java Build Path
Libraries
and re-download it.
Sometimes, automatic compilation or is more annoying, or it is recommended to write a small module after verification, and then manual compilation check.
Auto-compile configuration in Spring boot