SpringBoot–Spring Boot 热部署
1 通过 DevTools 工具实现热部署,修改Pom文件
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2 配置 Idea ,设置自动编译
3 设置 Idea 的 Registry
- 通过快捷键打开该设置项:Ctrl+Shift+Alt+/
- 勾选 complier.automake.allow.when.app.running
Spring Boot 热部署 Demo
链接:https://pan.baidu.com/s/1JY7e0YI_9upQOtlIfZUb5Q
提取码:c1i2