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、找到下列的选项并勾选

原文地址:https://www.cnblogs.com/gabin/p/6210983.html