關於mybatis總是報錯Type interface ****** is not known to the MapperRegistry解決辦法

今天學習mybatis的時候,運行的時候就會出現Type interface ******* is  not known to the MapperRegistry   項目結構如下: 運行test文件中的UpdateTest後,出現如下錯誤: 我的項目報的錯誤最終的解決辦法是:在工具類中添加一行:factory.getConfiguration().addMapper(UserMapperUpd
相關文章
相關標籤/搜索