- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 解决:Caused by: redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key
1. 报错:Caused by: redis.clients.jedis.exceptions.JedisDataException: WRONGTYPE Operation against a key holding the wrong kind of value2. 报错代码: /** * 写入 list * * @param key * @param values */ public <V> Long se
2020-06-08 17:16:19 11398
原创 解决:Unexpected token (START_OBJECT), expected START_ARRAY: need JSON Array to contain As.WRAPPER_ARRA
1. redisTemplate 报错:Caused by: com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (START_OBJECT), expected START_ARRAY: need JSON Array to contain As.WRAPPER_ARRAY type information for class java.lang.Object2. 报错代码行: Obj
2020-06-08 17:05:06 36292 6
原创 JDK8 集合排序 xxxList.stream.sorted(...)
# 默认list.stream().sorted() list.stream().sorted(Comparator.reverseOrder()) # 按字段排序xxxList.stream().sorted(Comparator.comparing(XxxModel::getData_time));# 倒序xxList.stream().sorted(Comparator.comparing(XxxModel::getData_time).reversed());...
2020-06-02 13:37:09 1801
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人