1.有可能是这个问题请参照这篇文章:https://blog.csdn.net/qq_44295125/article/details/107519618
2.这种方式也不行https://blog.csdn.net/weixin_43681796/article/details/98033592
3.最终修改pom文件 替换了这个就行了 真神奇
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
然后清楚缓存重启一下idea ,重启参考这篇文章https://blog.csdn.net/qq_44295125/article/details/106808633