项目版本回退后出现java compiler level does not match the version of the installed java project facet错误的解决

今天项目出问题了,采取了项目版本回退的方法解决了代码不能够下拉和上送的问题以后,出现如下错误,项目是微服务的,更新相关的依赖项目,仍得不到解决,检查mapper.xml文件亦没问题。然后在控制台那块发现问题如下Description:

项目版本回退后出现java compiler level does not match the version of the installed java project facet错误的解决

项目版本回退后出现java compiler level does not match the version of the installed java project facet错误的解决

这个意思是编译的版本和安装的版本不匹配。

在项目上右键--->属性,进入如下界面修改红色框内的版本号为1.8

项目版本回退后出现java compiler level does not match the version of the installed java project facet错误的解决

修改为1.8版本后,OK

项目版本回退后出现java compiler level does not match the version of the installed java project facet错误的解决

问题解决,但是你也需要保证你的JRE System Library 也是1.8版本哦。