1、引入依賴
<!--熱部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2、IDEA設置
2.1、開啓Java Compiler的自動build
2.2、按住ctrl + shift +alt + / 選擇Registry,按照下圖標註配置