码迷,mamicode.com
首页 > 其他好文 > 详细

Sprin Boot无RunWith注解解决办法

时间:2020-03-31 01:12:39      阅读:91      评论:0      收藏:0      [点我收藏+]

标签:lan   api   scope   org   解决   pre   enc   with   run   

在使用RunWith注解时提示错误,原因是没有导入junit的依赖

<dependency>
     <groupId>junit</groupId>
     <artifactId>junit</artifactId>
     <version>4.12</version>
     <scope>test</scope>
</dependency>
<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter-api</artifactId>
    <version>5.0.0</version>
</dependency>

Sprin Boot无RunWith注解解决办法

标签:lan   api   scope   org   解决   pre   enc   with   run   

原文地址:https://www.cnblogs.com/ez4zzw/p/12602494.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!