IDEA自动编译设置,2021.2前后版本配置有差异

For IntelliJ IDEA 12+ releases we can build automatically the edited sources if we are using the external compiler option. The only thing needed is to check the option "Build project automatically ", located under "Compiler" settings:

Also, if you would like to hot deploy, while the application is running or if you are using spring boot devtools you should enable the compiler.automake.allow.when.app.running from registry too. This will automatically compile your changes.

For versions greater than 2021.2, we need check 'Allow auto-make to start even id the development application is currently running' option:

For versions older than 2021.2:

Using Ctrl+Shift+A (or ⌘+Shift+A on Mac) type Registry once the registry windows is open, locate and enable compiler.automake.allow.when.app.running, see here:

参考:jakarta ee - Intellij IDEA Java classes not auto compiling on save - Stack Overflow

相关推荐
钛生智能2 分钟前
OA 流程定制全参数详解(七):流程的生命周期——启用、停用、导出、导入
java·办公自动化·oa·协同办公·oa办公系统
悟道书生12 分钟前
若依 RBAC 权限控制学习笔记
java·网络·笔记·sql·学习·vue
景熙552315 分钟前
2.什么是业务后台系统
java·spring·tomcat·mybatis·jdbc
古法老登瞎折腾31 分钟前
大数据智能运维实战(八):从调度任务追到计算引擎——补齐排查链路
java·大数据·运维·spring ai·mcp
砚底藏山河36 分钟前
python量化:实时行情WebSocket断线重连状态机
java·python·websocket·金融
衍生星球40 分钟前
【Java 语言】— 方法(方法定义、调用、参数、返回值、方法重载)
java·开发语言·方法
Wang's Blog1 小时前
Java 项目实战: 交友项目 - 查询评论列表
java·交友
sycmancia1 小时前
Qml——Text元素
java·前端·html
T_Apollo1 小时前
3.1 JVM 工作原理
java