mappers:映射器 : 定义映射SQL语句文件
mappers:映射器 : 定义映射SQL语句文件
错误:Type interface com.hut.mapper.UserMapper is not known to the MapperRegistry.
引入资源方式
MapperRegistry:注册绑定我们的Mapper文件;
方式一:推荐使用
<!-- 使用相对于类路径的资源引用 -->
<mappers>
<mapper resource="com/hut/mapper/UserMapper.xml"/&g
原创
2021-02-01 18:00:11 ·
325 阅读 ·
0 评论