1.在pom.xml中添加依赖
<!-- 热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2. 点击file-->settings-->Compiler
3. 点击Advanced Settings
4.完毕。