Spring consolidates Redis configuration files in a detailed

Source: Internet
Author: User

<?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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.