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

相关推荐
信誓旦旦的程序猿14 分钟前
【零依赖量化数据实战 #25】北交所技术指标与基本面
java·人工智能·python·股票数据api·股票数据·股票数据api接口·股票api数据接口
万年咸鱼18 分钟前
Java ArrayList 详解:原理、用法与实战
java·开发语言·windows
CoderYanger41 分钟前
A.每日一题:3345. 最小可整除数位乘积 I
java·数据结构·程序人生·算法·leetcode·面试·学习方法
小刘是地理大王1 小时前
OpenFeign 兜底回调(fallback / fallbackFactory)实战指南
java·后端
橘子汽水1681 小时前
Leetcode15:三数之和
java·数据结构·算法
Nolla1 小时前
为什么 assertThrows 需要 () ->:Lambda 延迟执行与异常捕获
java
SL_staff1 小时前
风控规则不该写代码:一个开发者视角的规则引擎实践拆解
java·架构·全栈
xieliyu.1 小时前
计算机网络|数据链路层详解:MAC 地址、交换机、ARP 协议、CRC 校验
java·网络·笔记·计算机网络·java-ee
2501_916008891 小时前
Flutter 开发 iOS,项目打包成 IPA,命令与免 Xcode两种方法
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程