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 分钟前
Spring Boot 升级全攻略:从 2.2 到 2.7 再到 3.x
java·spring boot·后端
WHS-_-202211 分钟前
LDM代码学习日记
ide·python·pycharm
wenroudelang888817 分钟前
Visual Studio的C#实例--2个窗体之间跳转
ide·c#·visual studio
啥都想学点19 分钟前
第17天:JDK、IDEA、MySQL 安装
java·intellij-idea
金銀銅鐵26 分钟前
[Java] Byte Buddy 和 InvocationHandler 的结合
java·后端
xieliyu.31 分钟前
Java、多态
java·开发语言
feng尘35 分钟前
Java线程池的执行流程与常见配置
java
yaoxin52112339 分钟前
364. Java IO API - 复制文件和目录
java·开发语言
独断万古他化43 分钟前
【Java 实战项目】多用户网页版聊天室:项目总览与用户 & 好友管理模块实现
java·spring boot·后端·websocket·mybatis
白露与泡影1 小时前
金三银四高频 Java 面试题及答案整理 (建议收藏)
java·开发语言