Spring Session
Spring Boot provides
Spring Session
auto-configuration for a wide range of data stores.
When building a servlet web application, the following stores can be auto-configured:
Additionally,
Spring Boot for Apache Geode
provides
auto-configuration for using Apache Geode as a session store
.
The servlet auto-configuration replaces the need to use
@Enable*HttpSession
.
If a single Spring Session module is present on the classpath, Spring Boot uses that store implementation automatically.
If you have more than one implementation, Spring Boot uses the following order for choosing a specific implementation:
For setting the timeout of the session you can use the
spring.session.timeout
property.
If that property is not set with a servlet web application, the auto-configuration falls back to the value of
server.servlet.session.timeout
.
You can take control over Spring Session’s configuration using
@Enable*HttpSession
(servlet) or
@Enable*WebSession
(reactive).
This will cause the auto-configuration to back off.
Spring Session can then be configured using the annotation’s attributes rather than the previously described configuration properties.
Spring Security
Spring for GraphQL
Apache®, Apache Tomcat®, Apache Kafka®, Apache Cassandra™, and Apache Geode™ are trademarks or registered trademarks of the Apache Software Foundation in the United States and/or other countries. Java™, Java™ SE, Java™ EE, and OpenJDK™ are trademarks of Oracle and/or its affiliates. Kubernetes® is a registered trademark of the Linux Foundation in the United States and other countries. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Windows® and Microsoft® Azure are registered trademarks of Microsoft Corporation. “AWS” and “Amazon Web Services” are trademarks or registered trademarks of Amazon.com Inc. or its affiliates. All other trademarks and copyrights are property of their respective owners and are only mentioned for informative purposes. Other names may be trademarks of their respective owners.