- 总结配置步骤
简单四步,开始 spring-session redis 配置人生
1. pom.xml 添加 jar依赖
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
....
<properties>
<version.spring-session>1.2.2.RELEASE</version.spring-session>
<!--不兼容 1.7.4.RELEASE -->
<version.spring-data-redis>1.7.1.RELEASE</version.spring-data-redis>
</properties>
<dependencies>
....
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
<version>${version.spring-session}</version>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
<version>${version.spring-session}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>${version.spring-data-redis}</version>
</dependency>
....
</dependencies>
</project>