springboot配置热部署

本文主讲:springboot在idea中配置热部署

idea 自动配置 make 功能

file - settings - build,execution,deployment - compiler - build project automatically(打勾)

springboot配置热部署springboot配置热部署

 

Ctrl+Shift +A 中输入 registry

springboot配置热部署

compiler.automake.allow.when.app.running -> 自动编译

compile.document.save.trigger.delay -> 自动更新文件

 

找到

compiler.automake.allow.when.app.running 打钩

compile.document.save.trigger.delay 修改值为 100

compile.automake.trigger.delay 修改值为 100

springboot配置热部署

 

springboot配置热部署

 

开启热部署策略:

顶部菜单 项目容器- >Edit Configurations->SpringBoot插件->目标项目->勾选热更新。

springboot配置热部署

最后开启springboot,亲测有用

 

关于springboot 提供了plugin 方式:springloaded,spring-boot-devtools 下次聊

 

来源网站:

https://www.jianshu.com/p/f658fed35786