Java compiler level does not match the version of the installed Java project facet.解决方法

右键项目“Properties”,在弹出的“Properties”窗口左侧,单击“Project Facets”,打开“Project Facets”页面。

在页面中的“Java”下拉列表中,选择相应版本就OK了


原文地址:https://www.cnblogs.com/cjjjj/p/6858307.html