1. 程式人生 > >Eclipse SpringBoot 關閉熱加載

Eclipse SpringBoot 關閉熱加載

位置 聲明 blank 圖片 com .com 重新 boot img

前段時間使用熱加載,感覺很新鮮。

開發階段確實比較好用。

所以來分享一個關閉熱加載的方法。

開啟熱加載:

1.pom.xml中添加

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <fork>true</fork> <!-- 如果沒有該配置,devtools不會生效 
--> </configuration> </plugin>

2.Eclipse設置:

把Build Automatically勾選上。

技術分享圖片

啟動修改。

修改代碼之後項目就會重新啟動。

1.java代碼

2.配置文件

3.ftl

關閉熱加載

Eclipse設置:

把Build Automatically設置取消選擇就可以了。

技術分享圖片

作者:Se7end

聲明:本博客文章為原創,只代表本人在工作學習中某一時間內總結的觀點或結論。轉載時請在文章頁面明顯位置給出原文鏈接。

Eclipse SpringBoot 關閉熱加載