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

相关推荐
Lansonli7 小时前
大数据Spark(八十八):Spark任务资源之Standalone集群测试
java·服务器·spark
budingxiaomoli7 小时前
Spring AOP
java·spring·java-ee
特立独行的猫A7 小时前
Ionic + 仓颉语言的 cj-tauri 开发框架实战:开发精美移动端 APP
java·后端·python
nice_lcj5207 小时前
LRU 缓存入门:它是什么、怎么用、面试怎么手写
java·数据结构·缓存·面试·lru
文丑颜不良啊8 小时前
LeetCode2741~2760题目解析
java·leetcode
金銀銅鐵18 小时前
带您看懂字节码指令(二):空循环里有什么
java·后端·ai编程
吴名氏.19 小时前
Java转AI Agent教程(第十三周)混合检索与重排
java·数据库·人工智能·ai·ai agent
.痞老板.20 小时前
java ee--多线程(进阶)
java·java-ee
深入云栈21 小时前
Netty 4.2.x 源码深度解析 (二十三):ByteBuf 核心设计 —— 索引、类型与零拷贝
java·后端·架构
wang_shu_mo_ran1 天前
MyBatis 从入门到进阶(一)
java·spring·mybatis