oracle 使用springboot框架查询出来的rowid是一个byte数组 出现 No serializer found for class java.io.ByteArrayInputStre
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.http.converter.HttpMessageConversionExcept
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.http.converter.HttpMessageConversionException: Type definition error: [simple type, class java.io.ByteArrayInputStream]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.inspur.alarm.sms.result.Result[“data”]->com.github.pagehelper.PageInfo[“list”]->com.github.pagehelper.Page[0]->java.util.HashMap[“ROWID”]->oracle.sql.ROWID[“stream”])] with root cause
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.inspur.alarm.sms.result.Result[“data”]->com.github.pagehelper.PageInfo[“list”]->com.github.pagehelper.Page[0]->java.util.HashMap[“ROWID”]->oracle.sql.ROWID[“stream”])
18位的byte数组
强行转化为String得到的结果如下
ROWID “oracle.sql.ROWID@4d77d9”
更多推荐
所有评论(0)