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

相关推荐
Gerardisite几秒前
企业微信自动化开发新思路: RPA 接入方案
java·python·自动化·企业微信·rpa
小谢小哥1 分钟前
49-缓存一致性详解
java·后端·架构
青槿吖2 分钟前
Sentinel 进阶实战:Feign 整合 + 全局异常 + Nacos 持久化,生产环境直接用
java·开发语言·spring cloud·微服务·云原生·ribbon·sentinel
穿条秋裤到处跑2 分钟前
每日一道leetcode(2026.04.21):执行交换操作后的最小汉明距离
java·算法·leetcode
疯狂打码的少年2 分钟前
内存管理三雄对决:C、Java、Python 的堆区、栈区、常量区、静态区深度解析
java·c语言·python
Seven973 分钟前
Tomcat组件管理源码详解
java
AI技术社区3 分钟前
Claude Code源码分析之提示词工程
java·开发语言·ai·ai编程
StackNoOverflow4 分钟前
Sentinel服务保护框架完全指南:从原理到实践
java·数据库·sentinel
敖正炀5 分钟前
阻塞队列-0-2-全景分析
java
TeDi TIVE10 分钟前
mysql-connector-java 和 mysql-connector-j的区别
android·java·mysql