maven错误总结
1. java compiler level does not match the version of the installed java project
右键项目“Properties”,在弹出的“Properties”窗口左侧,单击“Project Facets”,打开“Project Facets”页面。在页面中的“Java”下拉列表中,选择相应版本就OK了
2. Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment.
看警告的项目路径,选中项目修改
选择项目点击鼠标右键-->properties-->java buil path-->右栏选择libraries项-->选择JRE system library--> Edit-->选择workspace default JRE-->确认完成。
3.spring junit测试找不到SpringJUnit4ClassRunner.class
https://blog.csdn.net/u014172271/article/details/76713798
在父项目的pom文件中添加依赖
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>4.2.4.RELEASE</version>
</dependency>
posted on 2018-03-30 22:01 wastelands 阅读(326) 评论(0) 编辑 收藏 举报