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

相关推荐
05大叔4 分钟前
RAG开发
java·服务器·前端
迷藏4945 分钟前
# 发散创新:用 Rust实现高性能测试框架的底层逻辑与实战演练
java·开发语言·后端·python·rust
XuDream10 分钟前
idea中忽略idea文件不提交git和取消被 Git 追踪
java·git·intellij-idea
SadSunset12 分钟前
第五章:Redis 的 Java 客户端
java·数据库·redis
毕设源码-钟学长21 分钟前
【开题答辩全过程】以 基于Springboot的在线考试系统为例,包含答辩的问题和答案
java·spring boot·后端
星如雨グッ!(๑•̀ㅂ•́)و✧29 分钟前
Webflux onErrorStop使用
java
java1234_小锋30 分钟前
Java高频面试题:RocketMQ有哪些使用场景?
java·zookeeper·java-zookeeper
wellc32 分钟前
SpringCloud系列教程:微服务的未来(十四)网关登录校验、自定义过滤器GlobalFilter、GatawayFilter
java·spring cloud·微服务
dovens37 分钟前
SpringBoot 集成 Activiti 7 工作流引擎
java·spring boot·后端