idea的maven项目无法引入junit

idea版本:2.6.37

java版本:1.8

junit版本:4.12

出现问题:在使用@Test 无法引入 : org.junit.Test;

解决方法:junit在pom.xml改为junit:4.11解决

 

idea springboot 无法引入 : import org.junit.Test;

 

pom 重新引入:

 


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12-beta-3</version>
</dependency>


posted @ 2018-05-27 11:11  zhaoyan_dev  阅读(736)  评论(0编辑  收藏  举报