Task: Add spring session and redis data for externalized session

This commit is contained in:
Sambo Chea 2021-07-25 19:05:19 +07:00
parent 64a6023b77
commit 85b1573391
3 changed files with 21 additions and 1 deletions

11
pom.xml
View File

@ -118,11 +118,11 @@
<artifactId>h2</artifactId>
</dependency>
<!-- Spring and Frameworks-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
@ -132,7 +132,16 @@
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
<!-- Test Framework-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

View File

@ -0,0 +1,8 @@
package com.cubetiqs.fusion.config
import org.springframework.context.annotation.Configuration
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession
@Configuration
@EnableRedisHttpSession
class SessionConfig

View File

@ -6,6 +6,9 @@ logging:
org.atmosphere: warn
spring:
session:
store-type: redis
mustache:
check-template-location: false