解决Spring 热部署 开发工具: SpringToolSuite4(STS) 直接在pom.xml加入以下依赖即可 <!-- 热部署 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> 这样子可以解决没事修改代码之后重新运行的烦恼,加入以上的依赖,就能为我们重新部署项目