文章目录
添加依赖
在pom.xml
中添加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
IDEA配置
在setting中找到Compiler
勾选Build project automatically
然后应用
找Help
的Find Action
找到下图,点进去:
勾选下面选项
重启项目即可,如果热部署不及时,可以Build
一下:
其他热部署方式可以参考:Jrebel热部署热部署插件:Intellij IDEA 安装使用Jrebel热部署详解