抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

最近在springboot项目中进行单元测试时,遇见这样一个问题,显示卡在这样一个画面:

然后出现这样一个错误:

Error running 'AuditApplicationTests.contextLoads': Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2

springboot版本:2.2.6.RELEASE

idea版本:2019.3.4

解决办法:在项目的pom.xml文件中加入如下依赖

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

评论