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