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

相关推荐
一念一花一世界5 分钟前
Arbess从基础到实践(5) - 集成GitLab+SonarQube搭建Java项目自动化部署
java·gitlab·sonarqube·cicd·arbess
萧曵 丶6 分钟前
CompletableFuture 实际场景使用案例
java·多线程·并发编程·高级开发
_UMR_17 分钟前
多线程场景的学习3,使用CountDownLatch
java·开发语言
无限大.17 分钟前
验证码对抗史
java·开发语言·python
明月别枝惊鹊丶33 分钟前
【C++】GESP 三级手册
java·开发语言·c++
毕设源码-钟学长34 分钟前
【开题答辩全过程】以 公交线路查询系统为例,包含答辩的问题和答案
java
梵得儿SHI35 分钟前
SpringCloud - 核心组件精讲:Nacos 深度解析(服务注册 + 配置中心一站式实现)
java·spring boot·spring cloud·nacos·微服务架构的核心组件·服务注册发现与配置管理·nacos的核心原理与实战应用
不如打代码KK36 分钟前
Java SPI与Spring Boot SPI的区别
java·开发语言·spring boot
非凡的小笨鱼38 分钟前
利用arthas查看java服务里指定对象的大小
java·spring·arthas
代码or搬砖1 小时前
自定义注解全面详解
java·开发语言