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
相關文章
相關標籤/搜索