在调用mapper方法的时候,报错:
ache.ibatis.binding.BindingException: Type interface dynamicDao.dao.UserDao is not known to the MapperRegistry.
解决该错误:
出现该错误是因为你在xml所定义的mapper接口路径和实际中写的不一致,比如说你是当前包下的mapper,然而在对应的mapper.xml里面,nameSapce写的路径不对,所以才没找到。
使用mapper报错BindingException
最新推荐文章于 2022-12-28 10:16:40 发布