1<!--热部署配置-->
2         <dependency>
3             <groupId>org.springframework.boot</groupId>
4             <artifactId>spring-boot-devtools</artifactId>
5         </dependency>
因为Intellij IEDA默认情况下不会自动编译,需要对IDEA进行自动编译的设置

然后 Shift+Ctrl+Alt+/,选择Registry


问题解决啦.......
原文:https://www.cnblogs.com/Sarah-Strawberry/p/11089004.html