在导入Junit的依赖的时候,如果加入了<scope>test</scope>
就只能在 test中使用
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
如果想在main中使用,去掉<scope>test</scope>
就能使用了.