1:在进行save操作,插入数据的同时,往对象中注入id,则需要加两个属性 useGeneratedKeys="true" keyProperty="id"
<insert id="saveSelective" parameterType="AccountBasicInfo" useGeneratedKeys="true" keyProperty="id">
2:select中返回的是整个对象集合时,属性用 resultMap="BaseResultMap" ,当是基本数据类型集合时用 resultType=“String”/resultType="INTEGER", 当是单个对象时用 resultMap="BaseResultMap" ,