|
@@ -2,7 +2,10 @@ package cn.iselab.mooctest.user.configure;
|
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
+import org.springframework.data.redis.connection.RedisConnectionFactory;
|
|
|
+import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.data.redis.serializer.RedisSerializer;
|
|
|
+import org.springframework.data.redis.serializer.StringRedisSerializer;
|
|
|
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
|
|
|
import org.springframework.session.web.http.CookieSerializer;
|
|
|
import org.springframework.session.web.http.DefaultCookieSerializer;
|
|
@@ -30,4 +33,13 @@ public class RedisSessionConfiguration {
|
|
|
return new CustomSessionDefaultRedisSerializer();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|