Mybatis报错:Type interface com.mycode.dao.UserMapper is not known to the MapperRegistry.

问题描述: MapperRegistry不知道 com.mycode.dao.UserMapper这个接口。 解决思路: 以上图示代码首先是读取核心配置文件(SqlMapConfig.xml),得到一个输入流,构造者根据输入流流构造一个工厂,工厂生产一个SqlSession对象,SqlSession对象得到映射器的代理对象(有接口,没有实现类,生成代理对象),由代理对象执行sql语句。而报错是Ma
相关文章
相关标签/搜索