<?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:mvc= "Http://www.springframework.org/schema/mvc" xmlns: context= "Http://www.springframework.org/schema/context" xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP" xmlns:tx= "Http://www.springframework.org/schema/tx" xsi:schemalocation= "http://www.springframework.org/schema/ Beans Http://www.springframework.org/schema/beans/spring-beans-3.2.xsd Http://www.springframework.org/schema/mvc Http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd Http://www.springframework.org/schema/context http ://www.springframework.org/schema/context/spring-context-3.2.xsd HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP http ://www.springframework.org/schema/aop/spring-aop-3.2.xsd HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/TX/http Www.springframework.org/schema/tx/spring-tx-3.2.xsd "><!--Connection Pool configuration--><bean id=" Jedispoolconfig "class=" Redis.clieNts.jedis.JedisPoolConfig "><!--maximum number of connections--><property name=" maxtotal "value=" "/><!--maximum idle connections-- <property name= "Maxidle" value= "ten"/><!--maximum number of connections per release--><property name= "Numtestsperevictionrun" Value= "1024x768"/><!--release Connection scan interval (ms)--><property name= "Timebetweenevictionrunsmillis" value= "30000"/> <!--connection min idle time--><property name= "Minevictableidletimemillis" value= "1800000"/><!--connection idle for how long after release when idle time > This value and free connections > maximum number of idle connections is released directly--><property name= "Softminevictableidletimemillis" value= "10000"/><!-- The maximum number of wait milliseconds to get a connection, less than 0: blocking indeterminate time, Default-1--><property name= "Maxwaitmillis" value= ""/><!--Check for validity when acquiring a connection, Default false--><property name= "Testonborrow" value= "true"/><!--check validity when idle, default false--><property Name= " Testwhileidle "value=" true "/>< if!--connection is exhausted, false to report an exception, ture block until timeout, default true--><property name=" Blockwhenexhausted "value=" false "/></bean><!--Redis standalone via connection pool--><bean ID= "Jedispool" class= "Redis.clients.jedis.JedisPool" destroy-method= "Close" ><constructor-arg name= " Poolconfig "ref=" Jedispoolconfig "/><constructor-arg name=" host "value=" 192.168.50.17 "/>< Constructor-arg name= "Port" value= "6379"/></bean></beans>
Spring consolidates Redis configuration files in a detailed