Better detection of Spring Session store
See original GitHub issueWith the modules split in Spring Session 2, there is a high chance that the project’s classpath contains only one store implementation.
We should improve our auto-configuration structure to switch to that store in that case (and that case only) so that setting the property is not required.
There are two failures scenario to handle:
- More than one implementation is available: report that the store-type parameter is not set and which implementations are current available
- No implementation is available (that could happen for those migrating and having only
spring-session-core
on their classpath that used to contain the core implementations). Perhaps reusing theNoSuchBeanDefinition
failure analyzer could be a good idea as it would tell why the stores were not configured. If Spring Session provides a way to discover the available implementations (as Spring Data does withspring.factories
) we could build a more dedicated error message.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Documentation - Spring Session
Spring Session provides an API and implementations for managing a user's session information while also making it trivial to support clustered ...
Read more >Guide to Spring Session | Java Development Journal
A guide to introducing Spring Session. Learn how to use this API in a project to decouples session management from server container.
Read more >Spring Boot Session Management Example (2022)
As HTTP protocol is stateless, and to keep track of customer behavior, we need session management. Session Management is a web container framework...
Read more >Storing Spring Sessions in Database using JDBC - SpringHow
When running multiple instances of the same application, sharing the session data can be a good idea. In this post we will take...
Read more >Guide to Spring Session | Baeldung
Spring Session is a powerful tool for managing HTTP sessions. With our session storage simplified to a configuration class and a few Maven ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Failure analyzer for the first case
Closed by https://github.com/spring-projects/spring-boot/commit/4670cc779548677c5286fa5f1a5beee9b08a61eb