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

相关推荐
yaoxin5211231 小时前
325. Java Stream API - 理解 Collector 的三大特性:助力流处理优化
java·开发语言
RFG20127 小时前
20、详解Dubbo框架:消费方如何动态获取服务提供方地址?【微服务架构入门】
java·人工智能·后端·微服务·云原生·架构·dubbo
zjttsh8 小时前
Linux下安装Redis
java
TimberWill9 小时前
SpringBoot整合Srping Security实现权限控制
java·spring boot·后端
Renhao-Wan9 小时前
Java 算法实践(四):链表核心题型
java·数据结构·算法·链表
_codemonster11 小时前
JavaWeb开发系列(六)JSP基础
java·开发语言
万邦科技Lafite11 小时前
淘宝店铺所有商品API接口实战指南
java·数据库·mysql
jjjxxxhhh12311 小时前
【加密】-AES与对称加密
java·服务器·网络
临水逸11 小时前
飞牛fnos 2025 漏洞Java跨域URL浏览器
java·开发语言·安全·web安全
yaoxin52112311 小时前
324. Java Stream API - 实现 Collector 接口:自定义你的流式收集器
java·windows·python