Could not write JSON: Unsupported operation. SerialClob cannot return a the CLOB value as an ascii s

数据库中存在CLOB字段,返回给前端报错500

Could not write JSON: Unsupported operation. SerialClob cannot return a the CLOB value as an ascii stream, unless instantiated with a fully implemented Clob object.; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unsupported operation. SerialClob cannot return a the CLOB value as an ascii stream, unless instantiated with a fully implemented Clob object.

解决办法:

在xml中的映射添加Java类型和JDBC类型的映射关系

javaType="string" jdbcType="CLOB"

例如:

< result property="content" column="content" javaType="string" jdbcType="CLOB"/>

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
问题: Unsupported major.minor version 61.0是什么意思? 回答: Unsupported major.minor version 61.0表示你的Java代码或程序使用了一个不受支持的JDK版本。具体来说,这个错误信息表明你的代码或程序是用JDK版本61.0编译的,而你当前使用的JDK版本不支持这个编译版本。\[3\]通常,这个错误是由于你的JDK版本过低导致的。为了解决这个问题,你需要升级你的JDK版本到支持编译版本61.0的版本。你可以根据错误信息中提到的版本号对应关系,选择一个相对应的JDK版本进行编译。\[2\]这样,你就可以解决Unsupported major.minor version 61.0的问题了。 #### 引用[.reference_title] - *1* *2* [Unsupported major.minor version ](https://blog.csdn.net/yangdonghhm/article/details/84428766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v4^insert_chatgpt"}} ] [.reference_item] - *3* [解决MPS运行中出现Unsupported major.minor version错误问题](https://blog.csdn.net/weixin_38243001/article/details/104638144)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v4^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Evan Yi

老板行行好,打赏一下吧~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值