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

相关推荐
持敬chijing2 小时前
JAVA与CVE漏洞4-Log4J 漏洞原理与实现
java·网络安全·log4j·系统安全·网络攻击模型·安全威胁分析
软件技术NINI2 小时前
基于SpringBoot的社区留守儿童帮扶系统
java·spring boot·后端
会编程的吕洞宾3 小时前
Spring Boot虚拟线程实战:吞吐提升3倍
java·经验分享·后端·spring
Rain的Java大神之路3 小时前
Spring Boot 4 + Spring AI 2.0 迁移实战:别急着改版本号,先算算你欠了多少债
java·后端·ai编程
代码不停4 小时前
Linux基础知识
java·linux·数据库
钉先生贾5 小时前
HarmonyOS 7.0 性能排障实战 43:图片与大资源加载抖动时,怎样区分解码、布局与状态更新
java·前端·harmonyos
FRing035 小时前
for循环、while循环、Java高级语法、数组
java·开发语言·后端·算法
syf0611135 小时前
Java Math 类详解:常用数学运算方法全解析
java·开发语言
bs_wa665 小时前
(赠源码)大学生社团管理系统72638-( java、PHP、python、C#、小程序、硬件、机器学习、大数据分析、深度学习,大屏、文案、毕设等)
java·spring boot·redis·mysql·tomcat·maven·idea
stormsha7 小时前
MySQL 连不上:2003 / 1045 / 1040 三张面孔与一个排查顺序
java·数据库·mysql