注册

Mybatis-plus接收达梦8数据库Text类型报错

星耀 2022/11/16 1793 3

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:windows
【CPU】:
【问题描述】*:Mybatis-plus接收达梦8数据库Text类型报错
application.yml配置

mybatis-plus: type-handlers-package: com.common.handler

Handler类

package com.common.handler; import org.apache.ibatis.type.ClobTypeHandler; import org.apache.ibatis.type.JdbcType; import org.apache.ibatis.type.MappedJdbcTypes; import org.apache.ibatis.type.MappedTypes; import java.sql.Clob; @MappedTypes(Clob.class) @MappedJdbcTypes(JdbcType.CLOB) public class DmdbNClobTypeHandler extends ClobTypeHandler { }

使用Map<String,Object>去接收查询出来的数据,在转成JSON前报错

2022-11-16 16:07:52.713 [http-nio-9002-exec-10] ERROR com.zjhcsoft.bi.hcbf.core.exception.GlobalExceptionHandler Line:244 - 错误详情:Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]->dm.jdbc.desc.DmProperties["properties"]->java.util.Properties["epgroup"]->dm.jdbc.desc.EPGroup["props"]
回答 0
暂无回答
扫一扫
联系客服