阿录帮帮忙-配置及工具-IDEA配置及部署-热部署配置(基于springboot)
1、增加spring-boot的pom依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
2、勾选自动编译
按住ctrl + shift +alt + / 选择Registry,按照下图标注配置
3、如果是Thymeleaf, 则在application.yml文件加入spring:thymeleaf:cache: false 配置
Spring boot程序除了通过上述步奏实现热部署,还可以通过给程序添加spring-boot-devtools依赖实现。