gbase整合mybatis出现: Cause: java.sql.SQLException: Can't convert to: binary stream

参考地址:http://mybatis-user.963551.n3.nabble.com/Map-SQL-Type-LVARCHAR-x-to-JDBC-Type-VARCHAR-globally-td4029691.html

这主要是数据库中字段类型为LVARCHAR转换出现的问题,可以在mybatis-config.xml中添加如下配置:

    <typeHandlers>
        <typeHandler handler="org.apache.ibatis.type.StringTypeHandler" jdbcType="LONGVARCHAR" javaType="string"/>
    </typeHandlers>

 

posted @ 2019-09-18 10:21  炫舞风中  阅读(1354)  评论(0编辑  收藏  举报