SerializationException: Could not read JSON: Unrecognized token “xxx“
Unrecognized token “xxx”
出现的问题
org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Unrecognized token
搭建了一个redis-cluster,进行简单的set,get测试出现了这个问题,刚开始百事不得其姐…
问题出就出在
get的数据不是用java的形式添加的,而是命令行中直接添加的
注意:这里的v1没有加双引号
,但而在Java代码中添加的值,在json化序列化的时候都是默认会在两侧添加双引号
,这两者的不一致,导致了Java无法解析做个v1
,也就导致了问题的出现,验证这个问题,可以简单的修改
问题自然得到了解决
ps:
当然,我们平时一般不会直接在命令行中操作数据,如果非要操作的话,并且需要同Java一起操作的话,请记得给所有value加上''
SerializationException: Could not read JSON: Unrecognized token “xxx“相关推荐
- 一个json传参的错误:JSON parse error: Unrecognized token ‘xxx‘{ “timestamp“: “2022-03-06T16:06:29.866
一个json传参的错误: JSON parse error: Unrecognized token 'xxx' { "timestamp": "2022-03-0 ...
- JSON Parse error:Unrecognized token xxx
原文 fetch("http:/example.com", {method: "POST",body: JSON.stringify({uname: uname ...
- Ajax传JSON对象报错:JSON parse error: Unrecognized token ‘ids‘: was expecting (‘true‘, ‘false‘ or ‘null‘);
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unrecognized t ...
- JSON parse error: Unrecognized token ‘phone‘: was expecting (‘true‘, ‘false‘ or ‘null‘)
示例代码: import requests# 请求url url = 'http://api.test.zhulogic.com/designer_api/account/login_quick' # ...
- 解决JSON解析报错JsonParseException_ Unrecognized token ‘zxx‘_ was expecting (‘true‘, ‘false‘ or ‘null‘)
版权声明 本文原创作者:谷哥的小弟 作者博客地址:http://blog.csdn.net/lfdfhl 问题描述 SpringBoot项目中使用jackson进行数据解析. 代码如下: ValueO ...
- com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'user'
nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'user' 可能错误原因: ...
- JSON Web Token(缩写 JWT) 目前最流行、最常见的跨域认证解决方案,前端后端都需要会使用的东西
JSON Web Token(缩写 JWT)是目前最流行,也是最常见的跨域认证解决方案.无论是咱们后端小伙伴,还是前端小伙伴对都是需要了解. 本文介绍它的原理.使用场景.用法. 关于封面:这个冬天你过 ...
- JWT(JSON web token)
1.什么是JWT JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contain ...
- jwt, json web token
jwt 1. JWT 什么是JWT JWT能做什么 为什么用JWT JWT结构 JWT问题和趋势 2. jwt加解密工具,使用 pom 工具类 测试 1. JWT 什么是JWT 官方定义 json w ...
最新文章
- SPQuery简单使用示例
- rsync+shell脚本完成自动化
- pmp每日三题(2022年3月14日)
- AspNet.WebAPI.OData.ODataPQ实现WebAPI的分页查询服务-(个人拙笔)
- 菜鸟的jQuery源码学习笔记(三)
- 粒子系统(一):从零开始画一颗树
- CentOS HarBor安装与配置
- java线程中的notifyAll唤醒操作
- 18 File Duplication and Pipes
- matlab 遗传算法 等式约束,关于MATLAB遗传算法工具箱不等式约束
- 《Android进阶指北》— Android 书籍
- ZendFramework-2.4 源代码 - 整体架构(类图)
- 【commons-beanutils专题】003- PropertyUtils 专题
- 装机必备的100个软件下载和注册码
- xp系统搭建iscsi服务器,配置Microsoft Windows XP对MDS/IPS-8的iSCSI主机
- 电脑怎样设置定时关机
- Encoded password does not look like bcrypt
- 北京大学计算机科学技术研究所研究员万小军:机器写稿技术与应用 | CCF-GAIR 2017...
- 减法器(差分放大器)
- 汽车电子PKE与RKE学习笔记
热门文章
- 【职场】愚兄从不因言语生怨
- 从GPFS到NAS:共享文件系统使用之变革
- PDF转换成Word 文档新思路
- qq第三方登录时头像为qq空间头像的问题
- word中的页码设置和分页、分节问题
- elk组合查询 es组合查询
- 小清新、文艺风的Fin Market将首次在芭堤雅举办
- C++中使用MySQL数据库
- 柔性电子 --Conductive polymers: Creating their niche in thermoelectric domain
- css加号图标_DIV,CSS如何实现“加减号”“显示隐藏”效果