LoginSignup
0
0

More than 3 years have passed since last update.

Spring Boot 開發的時候的方便小工具(筆記)

Posted at

主要有兩個:

  1. 自動編譯 Java 檔
  2. 瀏覽器自動重新載入

自動編譯 Java 檔 - spring-boot-devtools

只要在 pom.xml 裡面加上這一段
就可以在開發期間不用重新手動編譯,就可以自動幫你重新處理已經有變更過的檔案了

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

加入之後不要先忘記重新編譯,才能夠真正起作用。

瀏覽器自動載入 - LiveReload

安裝位址: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei

可以自動判斷檔案是否已經被改變而自動重新載入頁面。

裝好之後需要點一下才會開始偵測,這一步也不要忘記。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0