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>
相關文章
相關標籤/搜索