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

相关推荐
u0133945271 分钟前
How to Run sample.war in a Tomcat Docker Container
java·docker·tomcat
splage5 分钟前
Spring Framework 中文官方文档
java·后端·spring
艾莉丝努力练剑10 分钟前
【Linux:文件 + 进程】理解IPC通信
linux·运维·服务器·开发语言·网络·c++·ide
洋不写bug12 分钟前
Java线程(二):线程特点、状态、终止开始控制(
java·开发语言
魑-魅-魍-魉13 分钟前
Stream 中 reversed () 引发 IDE 方法标红的排查方案
ide
sonnet-102917 分钟前
拓扑排序的实现
java·c语言·开发语言·笔记·算法
qq_4338889322 分钟前
IDE中加载不到文件/文件夹/类
ide
不想看见40426 分钟前
Min Stack栈和队列--力扣101算法题解笔记
java·笔记·leetcode
马猴烧酒.27 分钟前
【面试八股|计算机网络】计算机网络常见面试题详解笔记
java·开发语言·网络·笔记·计算机网络·算法·面试