热部署设置
(1) 加入Maven的相关依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
(2) 设置Settings
1) 搜索并选中Compiler
2) 勾选Compiler右侧: Build project automatically(如下图所示)
(3) 按下快捷键: Mac电脑: —> command + Alt + Shift + /;Windows —> Ctrl + Alt + Shift + /。然后点击Registry。勾选: compiler.automake.allow.when.app.running (如下图所示)