Skip to content

SympathyForTheDev/spring-boot-session-lettuce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-session-lettuce

Spring Boot Demo project Integration of Spring Security with Spring Session and Lettuce

=== Setting Up a Redis Server

The server is available for free here https://redis.io/download

Follow the installation instruction and then start the server:

$ redis-server

=== Run the Sample Application

With Gradle

$ ./gradlew clean bootRun

=== Test the application

=== Dependency

+-----------+        +-----------+        +-----------+        +-----------+
|           |        |           |        |           |        |           |
| Spring    |        |  Spring   |        |  Spring   |        |           |
| Session   +------->+  Session  +------->+  Data     +------->+  Lettuce  |
| Core      |        |  Redis    |        |  Redis    |        |           |
|           |        |           |        |           |        |           |
+-----------+        +-----------+        +-----------+        +-----------+

1/ spring-session-core: provide the httpSession support

2/ spring-session-redis: annotation @EnableRedisHttpSession and spring autoconfiguration

3/ spring-data-redis: repository layer

4/ lettuce: redis client

=== Limitations

This implementation is for Spring Boot 1.5.x with some limitations because it's not possible to use the latest version of lettuce (5.x and above) And the compatible lettuce version (3.5.0.Final) is only compatible with spring session 1.3.x (and not with the new 2.x.x)

If you need to use the latest version of lettuce or the latest version of spring-session you have to use Spring Boot 2 (since version 2.0.0.M7)

All the details here : spring-projects/spring-boot#9536

About

Demo project - Spring boot 1.5.x - Spring Security integration with Spring Session and Lettuce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages