1234567891011121314151617181920212223242526272829303132 |
- <?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:aop="http://www.springframework.org/schema/aop"
- xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
- xmlns:tx="http://www.springframework.org/schema/tx"
- 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
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx.xsd">
- <!-- 引入配置文件 -->
- <bean name="genericObjectPoolConfig" class="org.apache.commons.pool2.impl.GenericObjectPoolConfig">
- <property name="maxWaitMillis" value="-1" />
- <property name="maxTotal" value="50" />
- <property name="minIdle" value="1" />
- <property name="maxIdle" value="40" />
- </bean>
- <bean id="jedisCluster" class="com.gyee.util.JedisClusterFactory">
- <property name="addressConfig">
- <value>classpath:redis.properties</value>
- </property>
- <property name="addressKeyPrefix" value="" /> <!-- 属性文件里 key的前缀 -->
- <property name="timeout" value="300000" />
- <property name="maxRedirections" value="12" />
- <property name="genericObjectPoolConfig" ref="genericObjectPoolConfig" />
- </bean>
- </beans>
|