idea Error running 'xxxx类': Cannot start process, the working directory 'E:\xxx\xxx' does not exist

idea 创建的springboot工程,在其中的一个类中加入main方法去测试一些输出,运行main方法时,报错:Error running 'xxxx类': Cannot start process, the working directory 'E:\xxx\xxx' does not exist

解决方案:点击 editor configurations  弹出框,将working directory 中的路径由项目路径 改为本地路径E:\xxx,然后重新编译当前类,就可以执行当前类中的main方法。

idea Error running 'xxxx类': Cannot start process, the working directory 'E:\xxx\xxx' does not exist