JUnit 5 测试 Spring 引擎的时候提示 junit-vintage 错误 解决方案

  1. 修改依赖
    1.         <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>
  2. 重启项目
posted @ 2022-06-06 10:39  一点也不好  阅读(357)  评论(0)    收藏  举报