springboot使用devtools进行热部署操作

申明:本文也是参考众多文献,自己的操作经历,做一下记录。

首先:
在application.properties配置下图信息
在这里插入图片描述
其次:
在pom文件中添加依赖,如下图
在这里插入图片描述
IDEA中settings的配置:
首先
在这里插入图片描述
其次:
通过ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running
在这里插入图片描述
经测试在最上面设置的热启动目录下,当文件发生修改,将会自动进行重新编译,且速度很快。

猜你喜欢

转载自blog.csdn.net/m0_37997811/article/details/89509047