idea 项目启动报错 Error:Module is not specified 解决方案

今天到公司重启了一下电脑,打开idea后发现项目不能启动,并弹出Edit configuration 提示报错

idea 项目启动报错 Error:Module is not specified 解决方案

idea 项目启动报错 Error:Module is not specified 解决方案

解决方案如下:Edit Configuration > Configuration > Environment > Use classpath of module > 选择你当前的项目module > Apply一下,关闭或者直接启动项目就可以了

idea 项目启动报错 Error:Module is not specified 解决方案

idea 项目启动报错 Error:Module is not specified 解决方案