The introduction of hot deployment dependent on:
<!-- 热部署 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> </dependency>
In application.properties file
1)添加 spring.devtools.restart.enabled= false
You can turn off the restart SpringBoot
2)添加 spring.devtools.restart.trigger-file=myRestartTrigger.my
After New myRestartTrigger.my (trigger file) files in resources, can be undergoing a series of operations in myRestartTrigger.my write a file saved, you can automatically restart
Refer to: https://jingyan.baidu.com/article/4b07be3c91976e48b380f304.html