安装文档中的说法:
但是在实际中,遇到了如下问题:
select There is no setter for property named in java.lang.String
解决方案
<resultMap id="BaseResultMap" ...
<association property="expert" column="EXPER_ID" select="com.xx.domain.xxx.selectByPrimaryKey" />
在selectByPrimaryKey
中,column
直接添加ID就行了。