intellij idea 熱部署失效,需要手動編譯類


從網上看到的解決方案,做一下備忘:

spring boot項目中遇到jrebel類需要手動編譯才會觸發熱部署的問題(spring boot devtools一樣的問題)

1、ctl + shift + option + /

2、registry

3、compiler.automake.allow.when.app.running 勾選

英文:Allow auto-make to start even if developed application is currently running. Note that automatically started make may eventually delete some classes that are required by the application.

中文:允許自動編譯,即使開發應用程序當前正在運行。注意自動啟動最終可能會刪除一些應用程序所需的類。

-----------

下面是從自己寫的簡單文檔拷貝的

 

1、找到對應的快捷鍵,鍵入

2、在彈出的窗口選擇第一個,registry

3、找到下列的選項並勾選

 


免責聲明!

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



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