<1>tomcat的lib下面添加jar包:

<2>conf/context.xml中添加:
<Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" />
<Manager className="com.orangefunction.tomcat.redissessions.RedisSessionManager"
host="localhost"
port="6379"
database="0"
password="9client2016"
maxInactiveInterval="60"/>
<3>session中存取的对象必须实现序列化接口