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

相关推荐
发际线还在13 分钟前
互联网大厂Java三轮面试全流程实战问答与解析
java·数据库·分布式·面试·并发·系统设计·大厂
_周游26 分钟前
Kaptcha—Google验证码工具
java·intellij-idea·jquery
我真会写代码1 小时前
深入理解JVM GC:触发机制、OOM关联及核心垃圾回收算法
java·jvm·架构
本喵是FW1 小时前
C语言手记1
java·c语言·算法
学会放下ta1 小时前
安装breakpad
ide
洛阳泰山1 小时前
MaxKB4j Docker Compose 部署指南
java·docker·llm·springboot·rag·maxkb4j
森林里的程序猿猿1 小时前
垃圾收集器G1和ZGC
java·jvm·算法
weixin_404157681 小时前
Java高级面试与工程实践问题集(五)
java·开发语言·面试
fengci.1 小时前
ctfshow(web入门)295-300
java·开发语言·学习
重庆小透明2 小时前
【面试问题】java字节八股部分
java·面试·职场和发展