手動創建SpringBoot單元測試的坑

現在大多數人在搭建SpringBoot框架時,都是使用開發工具的快速構建工具自動搭建,所以在項目被創建時,會自動構建SpringBoot的啓動類和單元測試。最近手動搭建了一個SpringBoot框架,在運行單元測試時出現了異常 java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need t
相關文章
相關標籤/搜索