java 读 mysql 类型Blob数据库配置 resultType parameterType

mysql  类型Blob java中没有实体类 我想自己读到 byte[]里面 

<select id="New" resultType="不会填" parameterType="不会填"> 我查的我尝试填了几个 都不对 求大佬帮帮忙

    <resultMap id="aaMap" type="java.util.Map">
        <result column="dd" property="dd" jdbcType="BLOB"  typeHandler="org.apache.ibatis.type.BlobTypeHandler" />
    </resultMap>

    <select id="aa" resultMap="aaMap" parameterType="long">
        select dd from aa where uid =#{uid,jdbcType=BIGINT}}
    </select>

 

https://www.cnblogs.com/pwenlee/p/4762331.html

java.long.byte[]

<select id="aa" resultMap="" parameterType="">
        select dd from aa where uid =#{uid,jdbcType=BIGINT}}
    </select>

这样的

<select id="aa" resultMap="" parameterType="java.long.byte[]">
        select dd from aa where uid =#{uid,jdbcType=BIGINT}}
    </select>

或者

<select id="aa" resultMap="" parameterType="byte[]">
        select dd from aa where uid =#{uid,jdbcType=BIGINT}}
    </select>

试一下没问题

大哥 不用试 看的就不对啊

java.lang.Byte