# 示例和指南（从这里开始）

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

|来源|                                                 Description                                                  |                                  Guide                                   |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
|[HttpSession with Redis](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-redis)|               Demonstrates how to use Spring Session to replace the `HttpSession` with Redis.                |          [HttpSession with Redis Guide](guides/boot-redis.html)          |
|[HttpSession with JDBC](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-jdbc)|    Demonstrates how to use Spring Session to replace the `HttpSession` with a relational database store.     |           [HttpSession with JDBC Guide](guides/boot-jdbc.html)           |
|[Hazelcast 的 HttpSession](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-hazelcast)|             Demonstrates how to use Spring Session to replace the `HttpSession` with Hazelcast.              |                                                                          |
|[按用户名查找 Name](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-findbyusername)|                     Demonstrates how to use Spring Session to find sessions by username.                     |        [Find by Username Guide](guides/boot-findbyusername.html)         |
|[WebSockets](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-websocket)|                           Demonstrates how to use Spring Session with WebSockets.                            |              [WebSockets Guide](guides/boot-websocket.html)              |
|[WebFlux](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-webflux)|       Demonstrates how to use Spring Session to replace the Spring WebFlux’s `WebSession` with Redis.        |                                                                          |
|[带有自定义 cookie 的 WebFlux](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-webflux-custom-cookie)|    Demonstrates how to use Spring Session to customize the Session cookie in a WebFlux based application.    |[WebFlux with Custom Cookie Guide](guides/boot-webflux-custom-cookie.html)|
|[带有 Redis JSON 序列化的 HttpSession](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-redis-json)|   Demonstrates how to use Spring Session to replace the `HttpSession` with Redis using JSON serialization.   |                                                                          |
|[HttpSession with Simple Redis`SessionRepository`]（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)](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-mongodb-traditional)|                Demonstrates how to back Spring Session with traditional MongoDB repositories.                |    [Spring Session with MongoDB Repositories](guides/boot-mongo.html)    |
|[Spring Session with MongoDB Repositories (reactive)](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-boot-mongodb-reactive)|                 Demonstrates how to back Spring Session with reactive MongoDB repositories.                  |    [Spring Session with MongoDB Repositories](guides/boot-mongo.html)    |

|来源|                                             Description                                             |                            Guide                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------|
|[HttpSession with Redis](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-javaconfig-redis)|           Demonstrates how to use Spring Session to replace the `HttpSession` with Redis.           |    [HttpSession with Redis Guide](guides/java-redis.html)    |
|[HttpSession with JDBC](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-javaconfig-jdbc)|Demonstrates how to use Spring Session to replace the `HttpSession` with a relational database store.|     [HttpSession with JDBC Guide](guides/java-jdbc.html)     |
|[Hazelcast 的 HttpSession](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-javaconfig-hazelcast)|         Demonstrates how to use Spring Session to replace the `HttpSession` with Hazelcast.         |[HttpSession with Hazelcast Guide](guides/java-hazelcast.html)|
|[自定义 cookie](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-javaconfig-custom-cookie)|                  Demonstrates how to use Spring Session and customize the cookie.                   |    [Custom Cookie Guide](guides/java-custom-cookie.html)     |
|[Spring Security](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-javaconfig-security)|        Demonstrates how to use Spring Session with an existing Spring Security application.         |      [Spring Security Guide](guides/java-security.html)      |
|[REST](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-javaconfig-rest)|Demonstrates how to use Spring Session in a REST application to support authenticating with a header.|             [REST Guide](guides/java-rest.html)              |

|来源|                                             Description                                             |                        Guide                        |
|--------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------|
|[HttpSession with Redis](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-xml-redis)|       Demonstrates how to use Spring Session to replace the `HttpSession` with a Redis store.       |[HttpSession with Redis Guide](guides/xml-redis.html)|
|[HttpSession with JDBC](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-xml-jdbc)|Demonstrates how to use Spring Session to replace the `HttpSession` with a relational database store.| [HttpSession with JDBC Guide](guides/xml-jdbc.html) |

|来源|                                  Description                                  |Guide|
|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|-----|
|[Hazelcast](https://github.com/spring-projects/spring-session/tree/main/spring-session-samples/spring-session-sample-misc-hazelcast)|Demonstrates how to use Spring Session with Hazelcast in a Java EE application.|     |