spring-bootspring-session

Is store-type property in Spring Session no longer available?


In the Spring Session Documentation for Spring Boot Configuration, the first property explained is spring.session.store-type=jdbc. But in the Spring Session section of the Spring Boot Documentation this property is not listed. Also, this property is not listed among all the other Web Properties.

Trying to disable the usage of a session store like explained in older documentations doesn't have any effect:

spring.session.store-type=none

The session storage gets created anyway.

Is it no longer possible to disable the session storage when spring-session-jdbc is added as dependency and thus Spring Boot will autoconfigure it for its use?


Solution

  • According to the migration guide it is not longer supported https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#spring-session-store-type

    You can define your own SessionRepository to override autoConfiguration.