redisson / redisson-examples

Redisson java examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a Spring session Integration example

SympathyForTheDev opened this issue · comments

Hello,

I have done a sample project for testing the integration with redisson/spring boot/spring session/spring security. (https://github.com/DevWantJustHaveFun/spring-boot-session-redisson)

Do you think it could be useful to add it to this repository ?

If yes I can make a pull request, if no you can close this issue

Hi,

Thanks for your contribution! Could wait for 3.8.0 version with ready spring boot integration and update your example?

Yes 👌

@mrniko example updated successfully with redisson 3.8.0

@DevWantJustHaveFun
Thank you!

Why didn't you use spring-boot-starter out of the box?
https://github.com/redisson/redisson/tree/master/redisson-spring-boot-starter#spring-boot-starter

@mrniko
Because, I was not aware of this, it's a good idea to provide a starter with spring boot auto-configuration and dependencies.

I have tried to use it but i'm stuck with redisson/redisson#1640

I do not benefit of the auto-configuration provided by the starter because I use another redis codec (FST), it's probably a good idea to add this point in the configuration (something like: spring.redis.codec=de.ruedigermoeller.fst) thanks

@DevWantJustHaveFun

You can specify Redisson configuration file through spring.redis.redisson.config setting