Spring Boot Devtools
2166 ワード
Section 1. Spring Boot Devtools
1. Spring Boot Devtools
アプリケーション開発に役立つモジュールを提供
2.Spring Boot Demotoolsは典型的な機能を提供する
①自動再起動-クラスパスでファイルを変更したときにアプリケーションを自動的に再起動する
②Live Reload-静的ファイルを変更するときに直接適用を更新しない
③属性エラー-キャッシュ機能をfalseに設定
3.Spring Boot Demotools依存性注入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
4. Automatic Restart ①shiftキーを2回連続して入力し、「registry」を検索

②アプリケーションが実行中に自動的に再実行されることを確認する

③ソースファイルの修正時に自動生成に設定

5. Live Reload
① application.属性の設定
#Live Reload
spring.devtools.livereload.enabled=true
②Google Chrome WebブラウザにLiveReloadプログラムをインストールする
6. Property Defaults
#Thymeleaf cache 사용 중지
spring.thymeleaf.cache = false
Reference
この問題について(Spring Boot Devtools), 我々は、より多くの情報をここで見つけました https://velog.io/@codren/Spring-Boot-Devtoolsテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol