1.在pom.xml中配置依赖关系

<!--SpringBoot热部署配置 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>

2.点击File–>Settings

Springboot热部署如何配置_热部署


3.选择Compier---->Buid—>完成

Springboot热部署如何配置_spring_02


4.ctrl + shift + alt + / ,选择Registry

Springboot热部署如何配置_spring boot_03


5.勾上 Compiler autoMake allow when app running

Springboot热部署如何配置_spring_04


6.重新启动