7.热部署
2020-03-23 本文已影响0人
0f701952a44b
1.实现方式:
<dependency>
<groupId> org.springframework.boot </groupId>
<artifactId> spring-boot-devtools </artifactId>
<optional> true </optional>
</dependency>
2.默认不被热部署的文件
/META-INF/maven, /META-INF/resources, /resources, /static, /public or /templates
3.指定文件不进行热部署
spring.devtools.restart.exclude=static/,public/
4.指定某一文件,通过该文件手动控制内容修改后是否重启服务
spring.devtools.restart.trigger-file=trigger.txt