SpringBoot项目在IDEA实现热部署
一、开启IDEA自动make功能
CTRL + SHIFT + A 查找make project automatically勾选继续CTRL + SHIFT + A 查找Registry 找到勾选compiler.automake.allow.when.app.running
重新启动IDEA
二、配置热部署功能
加入maven依赖
<!--热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
IDEA自动生成springboot项目无需再开启热部署(还是原pom配置)
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
三、浏览器可以设置禁用缓存也可以用私密浏览模式自动不进行缓存
谷歌私密浏览模式快捷键:Ctrl+Shift+N
火狐私密浏览模式快捷键:Ctrl+Shift+P
IDEA实现热部署完成!!!