使用最新版idea配置spring boot热部署
在配置热部署这方面STS会更加方便 写好依赖就可以使用
idea准备工作:依赖写入
<!--添加热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
添加
<configuration>
<!--fork:如果没有该项配置,整个devtools不会起作用-->
<fork>true</fork>
</configuration>
然后快捷键 ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running
更换成这个即可
spring boot的热部署实现完成