mybatis关联一对一中出现: org.apache.ibatis.reflection.ReflectionException: Could not set property 'XXX' of 'class com.it.XXX.XXX$$_jvsteX_0'
一、看<association标签的property="XXX"是否为另一个表的类名和表名
在<resultMap 标签中type的
“111”为当前mapper的类名(好像是)
在<association 中
“222“为另一个表mapper的类名(maybe)
type的名字==property时,我们会发现
当property=“222”时
绿了
二、Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value
配置文件的问题
在映射文件里<mappers标签配一下就行