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

相关推荐
摇滚侠30 分钟前
Java Map 类型的数据可以存储到 Redis Hash 类型中
java·redis·哈希算法
人道领域44 分钟前
【LeetCode刷题日记】:151翻转字符串的单词(两种解法)
java·开发语言·算法·leetcode·面试
lifallen1 小时前
Flink 深度解析:从 TM、Task、Operator、UDF 到 Mailbox 与 OperatorChain
java·大数据·flink
Seven971 小时前
【从0到1构建一个ClaudeAgent】协作-Worktree+任务隔离
java
XS0301061 小时前
Java 基础(五)值传递
java·开发语言
倒霉蛋小马1 小时前
SpringBoot3中配置Knife4j
java·spring boot·后端
NotFound4861 小时前
实战分享怎样实现Spring Boot 中基于 WebClient 的 SSE 流式接口操作
java·spring boot·后端
青衫码上行1 小时前
【从零开始学习JVM】程序计数器
java·jvm·学习·面试
不吃香菜学java9 小时前
Redis的java客户端
java·开发语言·spring boot·redis·缓存
captain3769 小时前
事务___
java·数据库·mysql