JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

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

发布时间 2023-11-30 09:10:16作者: 陆陆无为而治者

一、运行test类方法时候报错

 二、分析原因,发现版本不一致

 三、找到pom文件, 把<version>RELEASE</version>注释掉,刷新一下maven依赖

 四:修改后,依赖版本一致。

 这样,就可以运行了。

 

    本栏目推荐文章
  • 蚂蚁爱购--靠谱的SpringBoot项目
  • org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
  • 实时数据流无忧:用 SpringBoot 和 SSE 打造动态前端更新的终极指南
  • springBoot(基础部分)
  • SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
  • android编译kanzi 问题 (1) Caused by: java.io.FileNotFoundException: Error: Could not find or access Kanzi's Android libraries directory: C:\XXXXXXX
  • 40 个 SpringBoot 常用注解:让生产力爆表!
  • Springboot 全局日期时间格式处理
  • SpringBoot中使用SpringEvent业务解耦神器实现监听发布事件同步异步执行任务
  • 05-K8 Pod:最小调度单元的使用进阶及实践
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们