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

相关推荐
BD_Marathon5 分钟前
【JavaWeb】Servlet_url-pattern的一些特殊写法问题
java·开发语言·servlet
黄俊懿7 分钟前
【深入理解SpringCloud微服务】Seata(AT模式)源码解析——开启全局事务
java·数据库·spring·spring cloud·微服务·架构·架构师
零度@17 分钟前
Java中Map的多种用法
java·前端·python
中文很快乐18 分钟前
java开发--开发工具全面介绍--新手养成记
java·开发语言·java开发·开发工具介绍·idea开发工具
yaoxin52112334 分钟前
268. Java Stream API 入门指南
java·开发语言·python
ss27338 分钟前
ConcurrentLinkedQueue实战:电商秒杀系统的队列选型优化
java·开发语言·安全
BD_Marathon1 小时前
【JavaWeb】Servlet_jar包导入和Content-Type问题
java·servlet·jar
hgz07102 小时前
JMeter性能压测执行与Linux环境部署
java·linux·jmeter
考虑考虑3 小时前
jdk9中的module模块化
java·后端·java ee
冷yan~3 小时前
GPT-5.2 深度技术解析:OpenAI 最强模型的架构与性能突破
java·gpt·ai·架构·ai编程