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

相关推荐
老华带你飞10 分钟前
英语学习|基于Java英语学习系统(源码+数据库+文档)
java·开发语言·数据库·vue.js·spring boot·后端·学习
qq_4798754312 分钟前
C++ 模板元编程
java·开发语言·c++
codingPower13 分钟前
Java EasyExcel创建复杂表格的完整指南:WriteTable
java·开发语言
爱学习的小可爱卢44 分钟前
编程语言30年:从Java到Rust的进化史
java·开发语言·rust
一 乐1 小时前
校园社区系统|基于java+vue的校园悬赏任务平台系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
就叫飞六吧1 小时前
考古spring.xml注册bean无法扫描目录问题
xml·java·spring
markuszhang1 小时前
G1 垃圾回收器学习
java·学习
CoderYanger1 小时前
动态规划算法-子序列问题(数组中不连续的一段):30.最长数对链
java·算法·leetcode·动态规划·1024程序员节
星月IWJ1 小时前
领域驱动设计学习
java·学习·设计模式
毕设源码-郭学长1 小时前
【开题答辩全过程】以 基于ssm的企业进销存管理系统的设计与实现为例,包含答辩的问题和答案
java