Task: Add spring session and redis data for externalized session
This commit is contained in:
parent
64a6023b77
commit
85b1573391
11
pom.xml
11
pom.xml
@ -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>
|
||||
|
@ -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
|
@ -6,6 +6,9 @@ logging:
|
||||
org.atmosphere: warn
|
||||
|
||||
spring:
|
||||
session:
|
||||
store-type: redis
|
||||
|
||||
mustache:
|
||||
check-template-location: false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user