0
如何將TypeHandler添加到給定的mapper.xml
而沒有resultMap,如下所示。如何在使用AS時添加TypeHandler?
<select id="selectUsers" resultType="User">
select
uid as "id",
user_name as "userName"
from some_table
where id = #{id}
</select>
我想用一些typeHandler
上user_name
列。