完整报错信息

java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test

Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(

解决:

测试类的路径和非测试类的路径不一致导致,修改
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2021-05-06
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2021-10-10
  • 2021-05-16
  • 2022-02-21
相关资源
相似解决方案