How can I do relational database-based HTTP Session Persistence in Spring 4?

前端 未结 3 2082
我在风中等你
我在风中等你 2020-12-14 12:42

I need to be able to store the HTTP Session in a relational database in order to do stateless load balancing of my front-end users across multiple front-end servers. How can

3条回答
  •  时光取名叫无心
    2020-12-14 12:46

    Now spring boot supports by 'spring-session-jdbc'. You can save session into db with less code. For more example you can look at https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot-jdbc.html#httpsession-jdbc-boot-sample

提交回复
热议问题