其他分享
首页 > 其他分享> > MyBatis:BindingException: Type interface mybatis.mapper.EmpMapper is not known to the MapperRegistry

MyBatis:BindingException: Type interface mybatis.mapper.EmpMapper is not known to the MapperRegistry

作者:互联网

问题


解决

  1. 找了半天,想这个既然是找不到EmpMapper,但是我明明生成了,所以应该是mybatis-config.xml里面没有配置对应的映射文件

  2. 加上对应mapper的路径即可

查询成功:

标签:mapper,EmpMapper,查询,mybatis,known,生成,对应
来源: https://www.cnblogs.com/CodeWater404/p/16156447.html