SpringBoot啓動時報錯:Error creating bean with name 'dataSource' defined in class..........

如果pom.xml中沒有配置mybatis的依賴,出現這個錯誤那麼 Spring boot啓動時會默認加載org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration類 加載時使用@Configuration註解向spring注入dataSource bean, 如果項目中沒有關於dataSource的配置信息,那麼
相關文章
相關標籤/搜索