SpringBoot hot deployment and integration (five)

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 Precautions: Do not open the production environment this feature, if you start with java -jar, springBoot is not hot deployment

Guess you like

Origin www.cnblogs.com/dalianpai/p/11665482.html