1.在启动方法中,加入如下
System.setProperty("spring.devtools.restart.enabled", "false");
2.properties文件
spring.devtools.restart.enabled=false
3.yml文件
devtools:
#热部署生效
enabled: true
restart:
#添加那个目录的文件需要restart
additional-paths: src/main/java
#排除那个目录的文件不需要restart
exclude: src/main/resources/views/**,src/main/resources/static/**
最后
以上就是漂亮早晨最近收集整理的关于Eclipse SpringBoot 热部署的全部内容,更多相关Eclipse内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复