一、运行test类方法时候报错
二、分析原因,发现版本不一致
三、找到pom文件, 把<version>RELEASE</version>注释掉,刷新一下maven依赖
四:修改后,依赖版本一致。
这样,就可以运行了。
- TestContextBootstrapper IllegalStateException SpringBoot 单元 Couldtestcontextbootstrapper illegalstateexception illegalstateexception springboot invocation testcontextbootstrapper springboot2 springboot单元assert springboot2 springboot单元 线程springboot单元java springboot单元 项目 指针springboot单元 springboot autowired nullpoint单元 springboot单元 项目junit