当前位置: 代码迷 >> 综合 >> Failed to resolve org.junit.vintage:junit-vintage-engine:5.6.2
  详细解决方案

Failed to resolve org.junit.vintage:junit-vintage-engine:5.6.2

热度:79   发布时间:2024-02-04 19:05:38.0

Error running 'Springboot02ApplicationTests.contextLoads': Failed to resolve org.junit.vintage:junit-vintage-engine:5.6.2

这是因为maven中缺少个依赖,添加进去就好了

<dependency><groupId>org.junit.platform</groupId><artifactId>junit-platform-launcher</artifactId><scope>test</scope>
</dependency>

添加进去后就ok了

  相关解决方案