添加依赖 <!-- 热部署配置--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> idea配置 ~~ 重启idea开始跑 ~~