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

相关推荐
Z***25804 分钟前
Java计算机视觉
java·开发语言·计算机视觉
一点事12 分钟前
ruoyi:集成mybatisplus实现mybatis增强
java·开发语言·mybatis
e***877013 分钟前
Tomcat Request Cookie 丢失问题
java·tomcat·firefox
linksinke19 分钟前
Mapstruct引发的 Caused by: java.lang.NumberFormatException: For input string: ““
java·开发语言·exception·mapstruct·numberformat·不能为空
likuolei39 分钟前
Eclipse 代码模板
java·ide·eclipse
好好研究1 小时前
SpringMVC框架 - 异常处理
java·开发语言·spring·mvc
只会写代码1 小时前
JDK8 Lambda 加持:打造优雅通用的对象构建器
java
sanggou1 小时前
Windsurf AI IDE 完全使用指南
ide·人工智能
摇滚侠1 小时前
Vue 项目实战《尚医通》,完成确定挂号业务,笔记46
java·开发语言·javascript·vue.js·笔记
正在走向自律1 小时前
豆包编程模型Doubao-Seed-Code深度体验,从零开始构建全栈项目的完整指南
java·服务器·数据库·doubao·claude code·火山方舟