maven项目名出现红叉,但里面没有错误

报错:Java compiler level does not match the version of the installed Java project 

原因:eclipse/myeclipse的jdk编译版本与项目jdk编译版本不一致

解决方法:右键项目找到Properties->Java Compiler->Compiler compliance  level 与

右键项目找到Properties->Project Facets->java 的版本号保持一直

猜你喜欢

转载自blog.csdn.net/wang1253/article/details/79552871