SpringBoot基於IDEA設置熱部署

熱部署設置

(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 (如下圖所示)
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章