A Idea
pom.xml
1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-devtools</artifactId> 4 <optional>true</optional> 5 </dependency>
After modifying the code, press Ctrl + F9 (Build + Project) will restart loading
Two Eclipse
pom.xml
1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-devtools</artifactId> 4 <optional>true</optional> 5 </dependency>
After modifying the code, press Ctrl + S will restart loading
Not hot files for deployment:
1、/META-INF/maven, /META-INF/resources, /resources, /static, /public, or /templates 2, the specified file is not hot deploy = spring.devtools.restart.exclude static /, public / 3, the manual-trigger restart File = spring.devtools.restart.trigger trigger.txt change the code does not restart (recommended) Otherwise Crtl + S to save time, to reboot a lot of trouble, specified trigger file that can be unified loaded.
To control through a text https://docs.spring.io/spring-boot/docs/2.1.0.BUILD-SNAPSHOT/reference/htmlsingle/#using-boot-devtools-restart-exclude