SpringBoot热部署 伦敦看日出 2023-04-26 102 阅读1分钟 SpringBoot热部署就是自动更新代码,不需要重新启动 1.添加dev-tool框架 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> 2.所有项目开启自动编译 3.开启运行时的热部署 4.使用debug启动项目