org.springframework.data.redis.serializer.SerializationException: Could not read JSON
程序员文章站
2022-01-13 10:56:28
...
org.springframework.data.redis.serializer.SerializationException: Could not read JSON
将数据存储到redis中报错,由于对象(实体)中缺少json的某个字段属性引起
解决办法。@JsonIgnoreProperties(ignoreUnknown = true)
另外一种方式 在调用的。
@Autowired private RedisTemplate redisTemplate; 不要指定范型也可以
@Autowired private RedisTemplate<String,Object> redisTemplate;
推荐阅读
-
python使用response.read()接收json数据的实例
-
MySQL案例03:Cause: java.sql.SQLException: Could not retrieve transaction read-only
-
git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
-
git clone报错:Permission denied (publickey). fatal: Could not read from remote repository...
-
Warning: imagettfbbox(): Could not read font in XXX on line X
-
2020/12/28 “fatal: Could not read from remote repository.”的解决方案(码云 gitee)
-
解决:The “https://packagist.laravel-china.org/packages.json” file could not be downloaded
-
windows下Idea使用git clone failed. Could not read from remote repository.
-
Scanning errors (1): 1 Could not read pom.xml
-
python使用response.read()接收json数据的实例