1、修改configerations 2、引入依赖(POM文件) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> 3、File----Settings 4、ctrl+shift+a 弹出页面中搜索“registry” 勾选图中所示选项: 最后: 重启