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

相关推荐
多加点辣也没关系7 分钟前
设计模式-策略模式
java·设计模式·策略模式
2601_9536603710 分钟前
Java Map集合详解与实战
java·开发语言·python
星晨羽18 分钟前
java通过共享目录协议下载文件到本地
java
YuanDaima204819 分钟前
云计算基础与容器技术演进
java·服务器·人工智能·python·深度学习·云计算·个人开发
java1234_小锋21 分钟前
SpringBoot可以同时处理多少请求?
java·spring boot·后端
JAVA面经实录91725 分钟前
原码反码补码编码架构与进制底层设计思想
java·架构
wangl_9230 分钟前
初探 C# 15 的 Union Types
java·开发语言·算法·c#·.net·.net core
happymaker062635 分钟前
Spring学习日记——DAY06(事务管理)
java·学习·spring
兰令水37 分钟前
topcode【随机算法题】【2026.5.14打卡-java版本】
java·算法·leetcode
雪度娃娃37 分钟前
结构型设计模式——代理模式
java·c++·设计模式·系统安全·代理模式