Spring Boot 热部署
1 通过 DevTools 工具实现热部署
1.1 修改 POM 文件,添加 DevTools 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
1.2 配置 Idea
1.2.1 设置自动编译
1.2.2 设置 Idea 的 Registry
通过快捷键打开该设置项:Ctrl+Shift+Alt+/
勾选 complier.automake.allow.when.app.running