熱部署設置
(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 (如下圖所示)