2025-11-04 16:45:12分类:新闻中心阅读(2263) 
复制<?分布
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:context="http://www.springframework.org/schema/context"                xmlns:mongo="http://www.springframework.org/schema/data/mongo"                xmlns:aop="http://www.springframework.org/schema/aop"                xsi:schemaLocation="http://www.springframework.org/schema/beans                              http://www.springframework.org/schema/beans/spring-beans-3.0.xsd                             http://www.springframework.org/schema/data/mongo                             http://www.springframework.org/schema/data/mongo/spring-mongo.xsd                           http://www.springframework.org/schema/context                         http://www.springframework.org/schema/context/spring-context-3.0.xsd                       http://www.springframework.org/schema/aop                       http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">                     <context:property-placeholder location="classpath:database.properties" />                   <bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig">                           <property name="maxIdle" value="${redis.maxIdle}" />                           <property name="maxTotal" value="${redis.maxActive}" />                           <property name="maxWaitMillis" value="${redis.maxWait}" />                           <property name="testOnBorrow" value="${redis.testOnBorrow}" />                       </bean>                   <bean id="connectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">                        <property name="hostName" value="${redis.host}"/>                        <property name="port" value="${redis.port}"/>                        <property name="password" value="${redis.pass}"/>                        <property name="poolConfig" ref="poolConfig"/>                   </bean>                       <bean id="stringSerializer" class="org.springframework.data.redis.serializer.StringRedisSerializer"/>                       <bean id="hashSerializer" class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer"/>                   <bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate">                           <property name="connectionFactory" ref="connectionFactory" />                           <property name="keySerializer" ref="stringSerializer"/>                           <property name="valueSerializer" ref="stringSerializer"/>                           <property name="hashKeySerializer" ref="stringSerializer" />                           <property name="hashValueSerializer" ref="hashSerializer"/>                   </bean>               </beans>               1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.