pom.xml
<dependency>
<groupId>com.taobao.tair</groupId>
<artifactId>tair-client</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.taobao.common.tair</groupId>
<artifactId>common-tair</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>com.taobao.common.tfs</groupId>
<artifactId>tfs-javaclient</artifactId>
<version>2.1.6</version>
</dependency>
tfs.properties
tfs.client.maxWaitThread=100
tfs.client.timeout=2000
tfs.client.nsip=192.168.229.3:8108
tfs.client.tfsClusterIndex=1
tfs.client.maxCacheItemCount=10000
tfs.client.maxCacheTime=5000
spring-tfs.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:tfs.properties</value>
</property>
</bean>
<bean id="tfsManager" class="com.taobao.common.tfs.DefaultTfsManager" init-method="init" >