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

相关推荐
shepherd11117 小时前
从入门到实践:玩转分布式链路追踪利器SkyWalking
java·后端·架构
最贪吃的虎17 小时前
网络是怎么传输的:从底层协议到浏览器访问网站的全过程剖析
java·开发语言·网络·http·缓存
uup17 小时前
CompletableFuture 异常吞噬:异步任务异常未处理导致结果丢失
java
有一个好名字17 小时前
设计模式-工厂方法模式
java·设计模式·工厂方法模式
篱笆院的狗17 小时前
Java 中线程之间如何进行通信?
java·开发语言
葱白有滋味17 小时前
Session、Token 和 JWT 的区别对比
java
Thomas_YXQ17 小时前
Unity3D的委托和事件的用法详解
java·开发语言
zwxu_17 小时前
thread堆栈分析报告
java·微服务·消息队列·熔断
百***787517 小时前
gpt-image-1.5极速接入指南:3步上手+图像核心能力解析+避坑手册
android·java·gpt
阿蒙Amon17 小时前
C#每日面试题-值类型与引用类型区别
java·面试·c#