file->settings->Build…把自动运行项目勾选起来
idea设置修改页面后不需要重启

点击ok按钮。

然后Alt+Shift+Ctrl+/->Registry 勾选“compiler.automake.allow.when.app.running”。

相关文章: