IDEA如何設置spring-boot-devtools即所見即所得


首先了解spring boot devtools基本概念  即存在即合理  地址:https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html

現在看下怎么運用到實際開發環境中去,實現效果:前、后端代碼修改后,無需手動重啟,查看效果,自動編譯,部署,頁面自動刷新

1.build.gradle引入devtools的jar包 (若僅用於前端開發,則不需要引用該jar包

2.360極速、google瀏覽器安裝LiveReload插件

3.Idea內部設置 File>settings>

4.修改Idea注冊值

  • In OSX, press Shift+Command+A (Shift+Ctrl+A in Windows)
  • Type "Registry" in the search box that appears, and select the registry to open it.
  • Lookup compiler.automake.allow.when.app.running and enable it.

5.重啟IDE即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM