java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use 解决办法

文章目录 一、问题描述 二、原因分析 1、没有写启动类的情况 2、不在同一个包下的情况 总结 一、问题描述 在单元测试的时候报:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(cla
相关文章
相关标签/搜索