1、进入Edit Configrations image.png 2、加在VM中 image.png 注意 正确运行方式: image.png 错误运行方式: image.png 不太清楚idea的机制,第二种运行方式会重新再生成一个默认的Configrations,所以用第一种比较保险