ache.ibatis.binding.BindingException: Type interface dynamicDao.dao.UserDao is not known to the Mapp

来源:互联网 发布:知乎 chorm无法登陆 编辑:程序博客网 时间:2024/05/01 22:37

MyBatis中进行动态代理测试的时候出现如下错误的原因是<mapper namespace="dynamicDao.dao.UserDao">,中命名空间不是所定义接口的类路径。


ache.ibatis.binding.BindingException: Type interface dynamicDao.dao.UserDao is not known to the MapperRegistry.
at org.apache.ibatis.binding.MapperRegistry.getMapper(MapperRegistry.java:42)

0 0