How to configure Spring Session Redis redisNamespace at runtime -


i'm using spring boot 1.3.6 , spring session , redis session store. need able set redisnamespace application runtime, , not hard-code in code. means cannot use @enableredishttpsession since not can set via applaction.yml file.

i've updated spring session 1.2.1.release support need, cannot seem system configure namespace via configuration. tried using spel in @enableredishttpsession(redisnamespace) call, doesn't work. tried have redishttpsessionconfiguration injected via autowired set well, , seemed have been ignored. there reference in post using spring.session.redis.namespace property in application.yml doesn't work.

any suggestions/tips appreciated!

i put -dspring.session.redis.namespace=mykeyname vm arguments. , working fine.

enter image description here

and i'm using spring boot v1.3.5.release , spring session 1.2.0.release.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -