2、mapper.xml将jdbcType写错为javaType
错误的写法:
<resultMap id="BaseResultMap" type="com.dong.springcloud.entities.Payment"> <id column="id" property="id" ></id> <id column="serial" property="serial" javaType="VARCHAR"/> </resultMap>
错误的写法:
<resultMap id="BaseResultMap" type="com.dong.springcloud.entities.Payment"> <id column="id" property="id" ></id> <id column="serial" property="serial" javaType="VARCHAR"/> </resultMap>