1.实体中定义byte数组对象
private byte[] feature;//重点,类型为byte
2、mybatis mapper对应的xml中配置
** select feature from xxxxx insert into xxxxx ( feature) values #{feature,jdbcType=BLOB} )#重点,加jdbcType
3.自定义转换时继承baseTypeHandler

1.实体中定义byte数组对象
private byte[] feature;//重点,类型为byte
2、mybatis mapper对应的xml中配置
** select feature from xxxxx insert into xxxxx ( feature) values #{feature,jdbcType=BLOB} )#重点,加jdbcType
3.自定义转换时继承baseTypeHandler