redis key值含有\xac\xed\x00\x05t\x00\x1b

来源:互联网 发布:python gnu getopt 编辑:程序博客网 时间:2024/05/18 03:20

今天碰到\xac\xed\x00\x05t\x00\x1b含有这个的问题 每一个都带,网上办法注入序列化那个,需要手动注入,没必要。用redisTemplate
的实现类就好了 官方已经实现

<bean id="redisTemplate" class="org.springframework.data.redis.core.StringRedisTemplate">        <property name="connectionFactory" ref="connectionFactory" /></bean>
原创粉丝点击