Spring Session 2021.0 Release Notes - spring-projects/spring-session-bom GitHub Wiki

Upgrading from Spring Session BOM 2020.0

Spring Session Data Redis

Redis key namespace configurations

The RedisSessionRepository no longer expects users to provide a trailing colon (:) when setting the key namespace.

Spring Session JDBC

JDBC session with negative timeout

JDBC sessions with a negative timeout will never expire. In prior versions, they would expire immediately.

New and Noteworthy

Spring Session JDBC

Database specific JdbcIndexedSessionRepository customizers

Customizers are provided for the following SQL dialects:

  • PostgreSQL

  • MySQL (also used by MariaDB)

  • SQL Server

  • IBM DB2

  • Oracle

These customizers are intended to address the concurrency issues occurring on insert of new session attribute by applying SQL dialect specific SQL upsert/merge statement instead of a generic insert.

Spring Session Data Geode

Configure Spring Session Data Geode via a Spring PropertySource

With version 2021.0.1 and above Spring Session Data Geode can be configured via a Spring PropertySource using spring-session.properties on the application classpath.

AbstractCookieSerializer and AbstractHttpSessionIdResolver base classes

Adds AbstractCookieSerializer and AbstractHttpSessionIdResolver base classes to simplify the implementation of the Spring Session core CookieSerializer and HttpSessionIdResolver interfaces.

Dependency Upgrades

Spring Session BOM 2021.0 moves to:

⚠️ **GitHub.com Fallback** ⚠️