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

相关推荐
本就一无所有 何惧重新开始1 分钟前
Redis技术应用
java·数据库·spring boot·redis·后端·缓存
低音钢琴14 分钟前
【SpringBoot从初学者到专家的成长11】Spring Boot中的application.properties与application.yml详解
java·spring boot·后端
蓝色汪洋27 分钟前
string字符集
java·开发语言
卿言卿语30 分钟前
CC1-二叉树的最小深度
java·数据结构·算法·leetcode·职场和发展
=>>漫反射=>>36 分钟前
配置的前世今生:从逻辑中抽离,又与逻辑有限融合
java·设计规范
让我上个超影吧42 分钟前
深入浅出 Java 中的 CompletableFuture:让异步编程变得简单
java·开发语言
好家伙VCC1 小时前
**发散创新:探索群体智能编程中的新境界**随着科技的飞速发展,群体智能逐渐成为编程领域的一大研究热点。本文将深入探讨群体智能的概念、优
java·python·科技
秉承初心1 小时前
Java 23种设计模式的详细解析
java·设计模式
千码君20161 小时前
Go语言:记录一下Go语言系统学习的第一天
java·开发语言·学习·golang·gin·并发编程·编译语言