在网上看到了好多,都是说将以下代码进行注释。
<!-- <scope>test</scope>-->
但是我这边测试还是不可以,然后我试着切换了一下版本就可以了。
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.9</version>
<!-- <scope>test</scope>-->
</dependency>