1. 程式人生 > >SpringBoot專案熱部署

SpringBoot專案熱部署

IntelliJ IDEA開發工具

1.需要在pom.xml檔案中加入以下依賴。

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

2.在File-->Setting-->Compiler下面,將Build project automatically前面的勾選框選上,然後點選Apply。

3.然後使用快捷鍵Ctrl+Shift+A,查詢Registry,選擇Registry...,將compiler.automake.allow.when.app.running選上即可。

4.這樣修改了頁面,不需要重啟專案,在頁面也可以看到修改後的效果。