アイデアは自動的にlivereloadをコンパイルするように設定します

1つのポンポンを追加  spring-boot-devtools 依存性

< 依存> 
    < groupIdを> org.springframework.boot </ groupIdを> 
    < たartifactId >春・ブート・デベロッパーツール</ たartifactId > 
    < オプション></ オプション> 
</ 依存関係>

2つの設定の変更

选中 File->Setting –> Build, Execution, Deployment –> Compiler–>自動的にプロジェクトをビルドします 

 

3   SHIFT+CTRL+A  入力し  、レジストリを  ポップアップウィンドウで

  検索compiler.automake.allow.when.app.running  ダニを

 

参考:

https://stackoverflow.com/questions/33349456/how-to-make-auto-reload-with-spring-boot-on-idea-intellij

https://www.mkyong.com/spring-boot/intellij-idea-spring-boot-template-reload-is-not-working/

おすすめ

転載: www.cnblogs.com/wolbo/p/11431699.html