diff --git a/Chapter3-2-5/pom.xml b/Chapter3-2-5/pom.xml
new file mode 100755
index 0000000..dc1d438
--- /dev/null
+++ b/Chapter3-2-5/pom.xml
@@ -0,0 +1,55 @@
+
+
+ 4.0.0
+
+ com.didispace
+ demo
+ 1.0.0
+ jar
+
+ demo
+ Spring Boot project
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 1.3.2.RELEASE
+
+
+
+
+ UTF-8
+ 1.8
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ org.springframework.boot
+ spring-boot-starter-redis
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
+
diff --git a/Chapter3-2-5/src/main/java/com/didispace/Application.java b/Chapter3-2-5/src/main/java/com/didispace/Application.java
new file mode 100755
index 0000000..2a14b75
--- /dev/null
+++ b/Chapter3-2-5/src/main/java/com/didispace/Application.java
@@ -0,0 +1,13 @@
+package com.didispace;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class Application {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+
+}
diff --git a/Chapter3-2-5/src/main/java/com/didispace/RedisConfig.java b/Chapter3-2-5/src/main/java/com/didispace/RedisConfig.java
new file mode 100644
index 0000000..cf103ff
--- /dev/null
+++ b/Chapter3-2-5/src/main/java/com/didispace/RedisConfig.java
@@ -0,0 +1,35 @@
+package com.didispace;
+
+import com.didispace.domain.User;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.connection.RedisConnectionFactory;
+import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.serializer.*;
+
+/**
+ * @author 程序猿DD
+ * @version 1.0.0
+ * @date 16/4/15 下午3:19.
+ * @blog http://blog.didispace.com
+ */
+@Configuration
+public class RedisConfig {
+
+ @Bean
+ JedisConnectionFactory jedisConnectionFactory() {
+ return new JedisConnectionFactory();
+ }
+
+ @Bean
+ public RedisTemplate redisTemplate(RedisConnectionFactory factory) {
+ RedisTemplate template = new RedisTemplate();
+ template.setConnectionFactory(jedisConnectionFactory());
+ template.setKeySerializer(new StringRedisSerializer());
+ template.setValueSerializer(new RedisObjectSerializer());
+ return template;
+ }
+
+
+}
diff --git a/Chapter3-2-5/src/main/java/com/didispace/RedisObjectSerializer.java b/Chapter3-2-5/src/main/java/com/didispace/RedisObjectSerializer.java
new file mode 100644
index 0000000..9aecc44
--- /dev/null
+++ b/Chapter3-2-5/src/main/java/com/didispace/RedisObjectSerializer.java
@@ -0,0 +1,43 @@
+package com.didispace;
+
+import org.springframework.core.convert.converter.Converter;
+import org.springframework.core.serializer.support.DeserializingConverter;
+import org.springframework.core.serializer.support.SerializingConverter;
+import org.springframework.data.redis.serializer.RedisSerializer;
+import org.springframework.data.redis.serializer.SerializationException;
+
+public class RedisObjectSerializer implements RedisSerializer