附件中jar放入tomcat\lib
tomcat\conf\context.xml中增加:
<Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" /> <Manager className="com.orangefunction.tomcat.redissessions.RedisSessionManager" host="redisip" port="6379" database="0" maxInactiveInterval="60" />