/**PageBeginHtml Block Begin **/ /***自定义返回顶部小火箭***/ /*生成博客目录的JS 开始*/ /*生成博客目录的JS 结束*/

Test类添加后 报错:程序包org.junit不存在解决


 

<dependency> <groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
 <!-- 作用域范围为test -->
 <scope>test</scope> </dependency>


将<scope>test</scope>注释掉即可

如下:
<dependency>
   <groupId>junit</groupId>
   <artifactId>junit</artifactId>
   <version>4.7</version>
</dependency>

 

原因:scope的作用范围问题,注释掉即可

posted @ 2021-05-23 22:26  一品堂.技术学习笔记  阅读(396)  评论(0编辑  收藏  举报