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

相关推荐
‎ദ്ദിᵔ.˛.ᵔ₎1 分钟前
Java 匿名内部类与 Lambda 表达式
java
hhhhhaaa3 分钟前
Java 并发编程核心原理与生产级最佳实践
java·后端
cqwuliu12 分钟前
Freemarker模板工具
java·开发语言
asdfg125896313 分钟前
`(line1, line2) -> line1 + line2` 此Lambda 表达式的理解
java·开发语言
AI人工智能+电脑小能手24 分钟前
【大白话说Java面试题 第49题】【JVM篇】第9题:什么是双亲委派机制?介绍一下运作过程。?
java·开发语言·jvm
码农-阿杰26 分钟前
Java 线程中断机制深度解析:从 API 到底层 C++ 实现
java·开发语言·c++
风味蘑菇干29 分钟前
斗地主案例
java·数据结构·算法
宠..37 分钟前
VS Code 修改 C++ 标准同时修改错误检测标准
java·linux·开发语言·javascript·c++·python·qt
WL_Aurora38 分钟前
Java Scanner输入陷阱深度解析
java·开发语言
一只大袋鼠42 分钟前
SpringMVC 框架中的拦截器
java·springmvc·javaweb·拦截器