完整报错:
出现这种情况大多是项目中引用了spring家族很多的jar包,但是有一些包的版本不一致,检查一下就好了:
把pom文件中的spring-test版本改下:
org.springframework
spring-test
5.3.9
compile
改为
org.springframework
spring-test
5.2.5.RELEASE
compile
其实这时候就体现出了声明统一版本号的好处:
4.0.2.RELEASE org.springframework spring-test5.2.5.RELEASE ${spring.version}
这样就避免了上面的错误发生。


![IDEA报错:java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. IDEA报错:java.lang.IllegalStateException: Could not load TestContextBootstrapper [null].](http://www.mshxw.com/aiimages/31/338200.png)
