From 1e142390cf226b852fec197ca6e6c53ce93cb7d5 Mon Sep 17 00:00:00 2001
From: 沈斌 <bluelazysb@hotmail.com>
Date: Thu, 02 Nov 2017 07:30:20 +0800
Subject: [PATCH] updates
---
src/main/resources/redis.xml | 26 ++++++--------------------
1 files changed, 6 insertions(+), 20 deletions(-)
diff --git a/src/main/resources/redis.xml b/src/main/resources/redis.xml
index 2db0476..2f6e99e 100644
--- a/src/main/resources/redis.xml
+++ b/src/main/resources/redis.xml
@@ -2,18 +2,12 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
- xmlns:mvc="http://www.springframework.org/schema/mvc"
- xmlns:cache="http://www.springframework.org/schema/cache"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-4.2.xsd
- http://www.springframework.org/schema/mvc
- http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
- http://www.springframework.org/schema/cache
- http://www.springframework.org/schema/cache/spring-cache-4.2.xsd">
+ http://www.springframework.org/schema/context/spring-context-4.2.xsd">
- <context:property-placeholder location="classpath:redis-config.properties" />
+ <!--<context:property-placeholder location="classpath:redis-config.properties" />-->
<bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig">
<property name="maxIdle" value="${redis.maxIdle}" />
@@ -30,18 +24,10 @@
<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>
+ <property name="keySerializer" ref="stringRedisSerializer" />
+ <property name="valueSerializer" ref="stringRedisSerializer" />
+ <property name="hashKeySerializer" ref="stringRedisSerializer" />
+ <property name="hashValueSerializer" ref="stringRedisSerializer" />
</bean>
</beans>
\ No newline at end of file
--
Gitblit v1.8.0