打开File -> Project Structure 选择需要的文件,右键设置为Resouces,之后classpath就正常了 转载于:https://www.cnblogs.com/tianphone/p/10845476.html