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了

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐