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

相关推荐
SamDeepThinking13 小时前
Java面向对象在JVM里怎么实现
java·后端·面试
咸鱼翻身小阿橙14 小时前
多线程解析
java·开发语言
一枚码农出身的猎头14 小时前
岗位招聘:架构师,base湖南长沙,70-80w
java·架构
tachibana215 小时前
hot100 课程表(207)
java·数据结构·算法·leetcode
神仙别闹15 小时前
编写基于C++ Huffman 算法的无损压缩程序和解压程序
java·c++·算法
IT乐手15 小时前
Android 写本地日志工具类
android·java
阿维的博客日记15 小时前
spring里面的@RequestParam什么意思
java·后端·spring
laowangpython15 小时前
昆仑通态 Mcgs Pro软件安装步骤(附安装包)Mcgs Pro 3.3.6 下载安装教程(保姆级)
java·服务器·数据库·其他
罗超驿16 小时前
6.Java LinkedList深度解析:从链表原理到源码实践
java·开发语言·链表
2501_9481069116 小时前
计算机毕业设计之jsp物业管理系统
java·大数据·开发语言·汽车·课程设计