Session management with Spring Boot?

前端 未结 1 440
攒了一身酷
攒了一身酷 2021-02-02 14:19

I want to set up session management and authentication with Spring Boot. Specifically, when the user logs into my web application, they should be able to call my REST API to get

相关标签:
1条回答
  • 2021-02-02 14:51

    Spring Session takes care of distributed session management.

    Spring Session provides an API and implementations for managing a user’s session information. It also provides transparent integration with:

    HttpSession - allows replacing the HttpSession in an application container (i.e. Tomcat) neutral way. Additional features include:

    Clustered Sessions - Spring Session makes it trivial to support clustered sessions without being tied to an application container specific solution.

    Multiple Browser Sessions - Spring Session supports managing multiple users' sessions in a single browser instance (i.e. multiple authenticated accounts similar to Google).

    RESTful APIs - Spring Session allows providing session ids in headers to work with RESTful APIs

    0 讨论(0)
提交回复
热议问题