BaseTypeHandler<T>
void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException; T getResult(ResultSet rs, String columnName) throws SQLException; T getResult(ResultSet rs, int columnIndex) throws SQLException; T getResult(CallableStatement cs, int columnIndex) throws SQLException;
setParameter 对请求参数处理
getResult 对结果处理
<resultMap id=“”type="">
<result column="contacts" property="contacts1" javaType="string"
typeHandler="ListTypeHandler"/>
</resultMap>
<result column="contacts" property="contacts1" javaType="string"
typeHandler="ListTypeHandler"/>
</resultMap>