- 核心依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
- yaml配置
spring: ## 热部署 devtools: ## 重新启动false restart: enabled: false ## 热加载 true livereload: enabled: true
- idea设置
- 验证