再用springboot的test的时候,提示这个,出现这个错误的解决方法是jar包冲突
再用springboot的test的时候,提示这个,出现这个错误的解决方法是jar包冲突
@RunWith(SpringRunner.class) @SpringBootTest(classes = SpringTestAround.class)
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.2.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test</artifactId>
<version>2.3.8.RELEASE</version>
<scope>test</scope>
</dependency>
最终使用5.2.12版本解决冲突