From 4f31a4e51eb43738e3a8db5ca591b618cdc9eff0 Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Mon, 30 Oct 2017 15:14:41 +0800 Subject: [PATCH] 代码更新 --- src/main/resources/redis.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main/resources/redis.xml b/src/main/resources/redis.xml index 3b6cfed..2db0476 100644 --- a/src/main/resources/redis.xml +++ b/src/main/resources/redis.xml @@ -29,6 +29,19 @@ <bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"> <property name="connectionFactory" ref="jedisConnectionFactory" /> <property name="defaultSerializer" ref="stringRedisSerializer" /> + + <property name="keySerializer"> + <bean class="org.springframework.data.redis.serializer.StringRedisSerializer" /> + </property> + <property name="valueSerializer"> + <bean class="org.springframework.data.redis.serializer.StringRedisSerializer" /> + </property> + <property name="hashKeySerializer"> + <bean class="org.springframework.data.redis.serializer.StringRedisSerializer" /> + </property> + <property name="hashValueSerializer"> + <bean class="org.springframework.data.redis.serializer.StringRedisSerializer" /> + </property> </bean> </beans> \ No newline at end of file -- Gitblit v1.8.0