jedis高版本,JedisPoolConfig,maxActive属性,maxWait,配置maxActive,maxTotal,maxWaitMillis

高版本jedis配置JedisPoolConfig的maxActive,maxWait应该为:

<bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">
      <property name="maxIdle" value="${redis.pool.maxIdle}" />
      <property name="maxTotal" value="${redis.pool.maxActive}" />  
      <property name="maxWaitMillis" value="${redis.pool.maxWait}" /> 
      <property name="testOnBorrow" value="${redis.pool.testOnBorrow}" />
      <property name="testOnReturn" value="${redis.pool.testOnReturn}" />
</bean>

  

posted @ 2015-09-14 17:45  Breaker-X  阅读(15846)  评论(0编辑  收藏  举报