spring——MyBatis整合的時候發現的錯誤 :org.springframework.beans.factory.BeanCreationException

當你整合Spring——MyBatis的時候,使用第二種方法,Dao層的代碼變成Mapper,而且打算將其實現類取消掉的時候。 要注意你在service中的實現類中定義的東西就不能在是DaoImpl定義的東西了 ,由於這個類已經不存在了,被你在applicationContext.xml中給註銷了。 具體報錯誤爲:java Exception in thread "main" org.spring
相關文章
相關標籤/搜索