Skip to content

spring.session.redis.namespace Spring property has no effect in a Spring Boot 3.5.0 based application #3423

Closed
@carlbjor

Description

@carlbjor

Describe the bug

spring.session.redis.namespace Spring (Boot) property has no effect when using Spring Boot/Spring Session 3.5.0

This approach works:

@EnableRedisHttpSession(redisNamespace = "customnamespace:spring:session")

To Reproduce

Set spring.session.redis.namespace=customnamespace:spring:session in the Spring Boot application.properties file

Check redis keys using redis-cli, for example keys *. End result is that the key does not start with customnamespace

Expected behavior

key in redis starting with customnamespace:spring:session

As the guide states it should work, if I can read the manual: https://docs.spring.io/spring-session/reference/configuration/redis.html#using-a-different-namespace

Sample
None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions