Mapper动态代理开发
原来dao接口和实现类用mapper接口替代
-
map映射xml文件和mapper接口的名字相同放在同一个文件夹下
image.png - 在sqpMapConfig.xml文件中修改如下配置
image.png
-
mapper.xml文件配置
命名空间是mapper接口的全类名
image.png
原来dao接口和实现类用mapper接口替代
map映射xml文件和mapper接口的名字相同放在同一个文件夹下
mapper.xml文件配置
命名空间是mapper接口的全类名