1. pom.xml中添加依赖后刷新
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
2. IDEA File->Settings->Complier->Build project automatically 打钩 ,然后APPLY->OK
3. ctr+shift+a 点击registry 选择
4. 重启即可,如果是google浏览器,禁用缓存