idea spring boot 热部署
导入 s p r i n g − b o o t − d e v t o o l s \color{green}{spring-boot-devtools} spring−boot−devtools模块
<!--自动更新代码和资源-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>runtime</scope> <!--只在运行时使用-->
</dependency>
配置自动重启
- 开启
自
动
构
建
项
目
\color{green}{自动构建项目}
自动构建项目
B
u
i
l
d
p
r
o
j
e
c
t
a
u
t
o
m
a
t
i
c
a
l
l
y
\color{green}{Build project automatically}
Buildprojectautomatically
- 使用快捷建
C
t
r
l
+
A
l
t
+
S
h
i
f
t
+
/
\color{green}{Ctrl + Alt + Shift + /}
Ctrl+Alt+Shift+/调出 Registry 窗口,勾选 $\color{green}{compiler.automake.allow.when.app.running} 选项。
新 版 中 在 设 置 的 高 级 设 置 中 如 下 图 \color{red}{新版中在设置的高级设置中如下图} 新版中在设置的高级设置中如下图
使用jrebel插件
- 安装插件
- 其他步骤