Spring单元测试报错原因:依赖不匹配
解决方案 寻找与之匹配的Junit
推荐组合:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
一定要注意Version!!!!