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

相关推荐
__万波__12 分钟前
嵌入式存储技术--1.Flash物理存储
java·开发语言
智购科技无人售货机工厂店22 分钟前
自动售货机振动与运输可靠性测试实战:跌落、振动与包装~YH
java·大数据·服务器·人工智能·科技
程序员小杰@1 小时前
Java 统一报文转换 + 签名验签完整介绍
java·开发语言
小张成长计划..2 小时前
【Linux】44:五种IO模型与非阻塞IO
java·服务器·数据库
不甘平凡的小鸟2 小时前
vs code 打开spring boot项目
java·spring boot·后端
ZhengEnCi2 小时前
Java 内存泄漏怎么排查:jstat、heap dump 与 MAT 线上定位流程
java·jvm·性能优化
Shaoshing3 小时前
LeetCode 921.使括号括号有效的最少添加
java·算法·leetcode·职场和发展
赤生云电竞4 小时前
云电竞GPU虚拟化选型:vGPU与直通架构实践对比
java·开发语言·架构
Ryan-Zhong4 小时前
视频解析 API 拒绝解析怎么判定:reason 分流与门禁
java·数据库·音视频
吹什么轩4 小时前
c++高并发内存池(一):从objectpool到central cache
java·开发语言