JUnit 5 测试 Spring 引擎的时候提示 junit-vintage 错误 解决方案
- 修改依赖
-
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> </exclusion> </exclusions> </dependency>
-
- 重启项目

浙公网安备 33010602011771号