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

相关推荐
${王小剑}3 分钟前
在pycharm中配置pyside6
ide·python·pycharm
于先生吖13 分钟前
前后端分离人事招聘项目,校招宣讲预约+社招双向撮合功能架构设计教程
java·开发语言·uni-app
user_admin_god14 分钟前
Claude Code 安装与配置指南:兼容国产模型,禁止自动更新
java·人工智能
一只鹿鹿鹿27 分钟前
网络安全评估方案
java·大数据·运维·物联网·web安全
码界索隆28 分钟前
Python转Java系列:作者有话说
java·开发语言·python
一支帆32 分钟前
微信小程序-情侣点餐
java·微信小程序·情侣点餐
kkk哥36 分钟前
weixin121作品集展示微信小程序
java·mysql·微信小程序·ssm·b/s架构·作品集展示微信小程序
码界索隆1 小时前
Python转Java系列:前言
java·开发语言·python
蓦然回首却已人去楼空1 小时前
【分词:中文分词】BPE字节级分词算法实现汉字表达!
java·算法·中文分词
asdfg12589632 小时前
一文理解Java中的泛型
java·开发语言