SpringBoot hot deployment
SpringBoot default does not support hot deployment, so when code changes every time when the need to restart the server, this is a waste of time, so you can import the following dependency in the pom.xml file inside
1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-devtools</artifactId> 4 </dependency>
SpringBoot start speed optimization
If you experience very slow using the following method when spring boot run start:
1. Enter the command line to query the current host name hostname
2. Go to the C drive Windows \ System32 \ drivers \ etc found in the host file
3. A copy of the edited elsewhere, add .local after the hostname when editing
4. Note: between 127.0.0.1 and local spaces are not two tab
Finally, modify the host file back to c to copy discs using the following