开启idea自动make功能 CTRL + SHIFT + A –> 查找make project automatically –> 选中 CTRL + SHIFT + A –> 查找Registry –> 找到并勾选compiler.automake.allow.when.app.running 最后重启idea