forked from sankin/sample-isv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some fix to connect to redis server Config now with spring.session.store-type Added a fix for a bug with the RedisHttpSessionConfiguration Updated the spring-boot-starter-redis to spring-boot-starter-data-redis Store-type in local null (terraform updated for redis) Removed unnecessary change from application.yml
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...le-isv-web/src/main/java/com/appdirect/isv/config/security/RedisSessionConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.appdirect.isv.config.security; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.session.data.redis.config.ConfigureRedisAction; | ||
|
||
@Configuration | ||
public class RedisSessionConfiguration { | ||
@Bean | ||
public static ConfigureRedisAction configureRedisAction() { | ||
// Fixing a bug with the RedisHttpSessionConfiguration when Redis is not protected by a password | ||
return ConfigureRedisAction.NO_OP; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters