使用ResultMap中的association进行两张表的联查时出现以下错误
报错: Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property ‘user’ of 'class xxx
代码截图:
orderMapper.xml
userMapper.xml
导致原因: select中返回的类型与属性中的属性的类型不一致
修改代码: 保证位置1和位置2的类型一致,否则会报上面的错
如有错误请指正,谢谢