springboot hot deployment in two ways
Come on, China, Wuhan Come on!
Project Preparation
- Just create a new project springboot
1. Automatic hot deployment
1.1 On its dependencies
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
1.2 plug-in configuration
<configuration>
<fork>true</fork>
</configuration>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
1.3 setting is set to automatically compile the project
ctrl + alt + shift + / Click Registry
2. Manual hot deployment
2.1 rely guide
With automatic hot deployment
2.2 plug-in configuration
With automatic hot deployment
2.3 Set Configurations