shengyang

 1, Eclipse中Problem显示如下错误信息

Description Resource Path Location Type
Java compiler level does not match the version of the installed Java project facet. studyjava Unknown Faceted Project Problem (Java Version Mismatch)

解决方法:

1) 在pom.xml中添加plugin

1 <plugin>
2 <artifactId>maven-compiler-plugin</artifactId>
3 <configuration>
4 <source>1.6</source>
5 <target>1.6</target>
6 </configuration>
7 </plugin>

2) 命令行运行mvn eclipse:eclipse

3) 刷新Eclipse项目,错误没了

 2, 

分类:

技术点:

相关文章: