打开IDEA界面
添加maven配置:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
在窗口左上角选择File->Settings
勾选这个配置,然后点击应用或者OK
最后在SpringBoot的启动器配置,如果跟我图上面一样就不用配置了,如果是Do Noting就改成我这个配置:
之后点击OK即可完成热部署。