目录
官方文档:https://docs.spring.io/spring-session/docs/1.3.0.RELEASE/reference/html5/
org.springframework.session
spring-session-data-redis
1.2.0.RELEASE

class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
contextConfigLocation
classpath:spring-mvc.xml
springSessionRepositoryFilter
org.springframework.web.filter.DelegatingFilterProxy
springSessionRepositoryFilter
/*
这样就可以实现分布式Session了。
注意:
1)spring的这个配置文件一定要写在web.xml的
2)filter的名字必须是springSessionRepositoryFilter
3)如果使用了shiro,web.xml中一定要把
要求Tomcat7,tomcat8不支持
编辑${TOMCAT_HOME}/conf/context.xml,在context中加入
host="localhost"
port="6379"
password="123456"
database="0"
maxInactiveInterval="60" />
Tomcat安装lib目录添加以下jar包:

<session-config>
<session-timeout>30session-timeout>
session-config>