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