# 示例和指南(从这里开始)

要开始使用 Spring Session ,最好的起点是我们的示例应用程序。

来源 Description Guide
HttpSession with Redis (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with Redis. HttpSession with Redis Guide
HttpSession with JDBC (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with a relational database store. HttpSession with JDBC Guide
Hazelcast 的 HttpSession (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with Hazelcast.
按用户名查找 Name (opens new window) Demonstrates how to use Spring Session to find sessions by username. Find by Username Guide
WebSockets (opens new window) Demonstrates how to use Spring Session with WebSockets. WebSockets Guide
WebFlux (opens new window) Demonstrates how to use Spring Session to replace the Spring WebFlux’s WebSession with Redis.
带有自定义 cookie 的 WebFlux (opens new window) Demonstrates how to use Spring Session to customize the Session cookie in a WebFlux based application. WebFlux with Custom Cookie Guide
带有 Redis JSON 序列化的 HttpSession (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with Redis using JSON serialization.
[HttpSession with Simple RedisSessionRepository](https://github.com/ Spring-projects/ Spring-session/tree/main/ Spring-session-samples/ Spring-session-sample-boot-redis-simple) Demonstrates how to use Spring Session to replace the HttpSession with Redis using RedisSessionRepository.
Spring Session with MongoDB Repositories (servlet-based) (opens new window) Demonstrates how to back Spring Session with traditional MongoDB repositories. Spring Session with MongoDB Repositories
Spring Session with MongoDB Repositories (reactive) (opens new window) Demonstrates how to back Spring Session with reactive MongoDB repositories. Spring Session with MongoDB Repositories
来源 Description Guide
HttpSession with Redis (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with Redis. HttpSession with Redis Guide
HttpSession with JDBC (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with a relational database store. HttpSession with JDBC Guide
Hazelcast 的 HttpSession (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with Hazelcast. HttpSession with Hazelcast Guide
自定义 cookie (opens new window) Demonstrates how to use Spring Session and customize the cookie. Custom Cookie Guide
Spring Security (opens new window) Demonstrates how to use Spring Session with an existing Spring Security application. Spring Security Guide
REST (opens new window) Demonstrates how to use Spring Session in a REST application to support authenticating with a header. REST Guide
来源 Description Guide
HttpSession with Redis (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with a Redis store. HttpSession with Redis Guide
HttpSession with JDBC (opens new window) Demonstrates how to use Spring Session to replace the HttpSession with a relational database store. HttpSession with JDBC Guide
来源 Description Guide
Hazelcast (opens new window) Demonstrates how to use Spring Session with Hazelcast in a Java EE application.