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.htmlhtml

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

    <typeHandlers>
        <typeHandler handler="org.apache.ibatis.type.StringTypeHandler" jdbcType="LONGVARCHAR" javaType="string"/>
    </typeHandlers>
相关文章
相关标签/搜索