TestContextBootstrapper

【SpringBoot】单元测试报错java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]

一、运行test类方法时候报错 二、分析原因,发现版本不一致 三、找到pom文件, 把<version>RELEASE</version>注释掉,刷新一下maven依赖 四:修改后,依赖版本一致。 这样,就可以运行了。 ......
共1篇  :1/1页 首页上一页1下一页尾页