<?xml version="1.0" encoding="UTF-8"?>
<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"
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context 
        http://www.springframework.org/schema/context/spring-context.xsd">
<!--     // 
    帐号：92dd46acd0fe11e4
    密码：F92dd46acd0fe11e4
    地址：92dd46acd0fe11e4.m.cnhza.kvstore.aliyuncs.com
    端口：6379
-->
<!--     <bean class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" -->
<!--         p:host-name="127.0.0.1"  -->
<!--         p:password="0211" />  -->
    <bean class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
        p:host-name="92dd46acd0fe11e4.m.cnhza.kvstore.aliyuncs.com" 
        p:port="6379"
        p:password="92dd46acd0fe11e4-F92dd46acd0fe11e4" /> 

    <bean class="org.springframework.data.redis.core.StringRedisTemplate" autowire="constructor" /> 
    <bean class="org.springframework.data.redis.core.RedisTemplate" autowire="byType">
<!--         <property name="connectionFactory" ref="jedisConnectionFactory" /> -->
        <property name="keySerializer">
            <bean class="org.springframework.data.redis.serializer.StringRedisSerializer" />
        </property>
        <property name="hashKeySerializer">
            <bean class="org.springframework.data.redis.serializer.StringRedisSerializer" />
        </property>
        <property name="valueSerializer">
            <bean class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer" />
        </property>
        <property name="hashValueSerializer">
            <bean class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer" />
        </property>
    </bean>
</beans>
