Mybatis 错误整理:因未在Mybatis总配置文件中通过 <mapper>注册 dao.xml 导致无法识别接口类
错误提示:
org.apache.ibatis.binding.BindingException: Type interface com.mybatis.mybatisdemo.dao.IAccountDao is not known to the MapperRegistry.
解决方案:
<mappers>
<mapper resource="dao.xml全限定类名"/>
</mappers>
...
原创
2022-03-13 01:01:39 ·
761 阅读 ·
0 评论