bladeRedis.hmGet 转成 List集合

Blade 已结 1 1183
Lee
Lee 剑圣 2020-04-13 19:34

一、该问题的重现步骤是什么?

1. 

bladeRedis.hmGet 转成 list集合

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

如何转成 list 集合

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex 2.4.1 


四、请提供详细的错误堆栈信息,这很重要。



五、若有更多详细信息,请在下面提供。

List list =  bladeRedis.hmGet("blade:crcc::dept::hr11dept:142687:*", HrDeptCrcc.class);
2020-04-13 19:31:14.309 ERROR 30632 --- [  XNIO-1 task-1] o.s.c.l.e.BladeRestExceptionTranslator   : 服务器异常

org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.Class] to type [java.lang.String]
 at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:321)
 at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:194)
 at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:174)
 at org.springblade.core.redis.serializer.RedisKeySerializer.serialize(RedisKeySerializer.java:70)
 at org.springframework.data.redis.core.AbstractOperations.rawHashKey(AbstractOperations.java:166)
 at org.springframework.data.redis.core.DefaultHashOperations.multiGet(DefaultHashOperations.java:172)
 at org.springblade.core.redis.cache.BladeRedis.hmGet(BladeRedis.java:421)
 at org.springblade.core.redis.cache.BladeRedis.hmGet(BladeRedis.java:412)


1条回答
  •  smallchill
    smallchill (最佳回答者)
    2020-04-15 19:52

    List list =  bladeRedis.hmGet("blade:crcc::dept::hr11dept:142687:*", List.class);


    0 讨论(1)
提交回复