java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @Context

springboot單元測試出現 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test 通過百度解決,就是說將測試類的包名改成和普通
相關文章
相關標籤/搜索