springboot热部署设置
时间:2021-03-05 13:13:35
收藏:0
阅读:0
spingboot手动热部署和自动热部署(建议使用手动热部署)
手动热部署:
1、首先需要导入spring-boot-devtools依赖

2、在build里添加fork

3、选择上update classes and resources

4、启动springboot项目
5、项目启动后点击此处手动刷新

自动热部署:
1、首先需要导入spring-boot-devtools依赖

2、在build里添加fork

3、在settings下的Compiler处勾选Build project automatically

4、通过shift+ctrl+alt+/ 快捷键弹出Maintenance进入Registry项

5、找到此选项勾选上即可

评论(0)