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

相关推荐
用户3521802454752 小时前
当 Prompt 学会"热更新":Spring Boot × Nacos3 AI 实战
java·spring boot·ai编程
东坡白菜5 小时前
破局全栈:一个前端开发的Java入门实战记录(1)
java·全栈
唐青枫5 小时前
Java Tomcat 实战指南:从 Servlet 容器到 Spring Boot 部署
java
wsaaaqqq6 小时前
roudan:自由选择实体、灵活操作数据、快速写入数据库的 Java 框架
java
plainGeekDev9 小时前
null 判断 → Kotlin 可空类型
android·java·kotlin
糖拌西瓜皮9 小时前
Java开发者视角:深入理解Node.js异步编程模型
java·后端·node.js
plainGeekDev9 小时前
getter/setter → Kotlin 属性
android·java·kotlin
一线大码10 小时前
Smart-Doc 的简单使用
java·后端·restful
MacroZheng11 小时前
Claude Code官方桌面端正式发布,夯爆了!
java·人工智能·后端