关于maven到包问题……

本人小白,不知道哪里错了,求大神指点,谢谢!如图……图片图片

你没有导JUnit的包,是不能用@Test的注解的

<!--<dependency>
  <groupId>junit</groupId>
  <artifactId>junit</artifactId>
  <version>4.12</version>
</dependency> -->

这个是aliyun的maven的Junit的4.12版的,你在pom。xml文件中增加这一段试试,把两边的注释符去掉
有用记得采纳

http://blog.csdn.net/fuck__you_/article/details/46620079

你没有导JUnit的包,是不能用@Test的注解的

junit
junit
4.12

这个是aliyun的maven的Junit的4.12版的,你在pom。xml文件中增加这一段试试
有用记得采纳




junit

junit

4.12

test

用这个试试,我本地可以




junit

junit

4.12

test