Hot Start
During the development process, when we need to run the application test after writing a function, we need to restart the server. The simplest project will take more than 10 seconds, and it will take more time if it is a larger project. SpringBoot provides spring-boot-devtools, which enables the application to be automatically restarted when the project changes
idea community edition settings
Menu bar FIle->Settings...
Check Build project automatically
菜单栏FIle -> Settings… -> Advanced Settings
勾选Allow auto-make to start even if developed application is currently running
maven package configuration
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
configuration file
Add
spring.devtools.restart.enabled=true
success!