If we need to implement this requirement, we need to authenticate each request. Here we assume that except for some pages, such as the home page, any other pages of our site need to be logged in before they can be accessed. Let's first think about how we can achieve centralized storage in the back-end Session if we don't rely on any framework. Today we use this way to transform the Session storage mode and store it uniformly in Redis. Last time, Xiaohei introduced four implementation methods of distributed consistent Session in his article, of which the most commonly used is the back-end centralized storage solution, so that even if the web application is restarted or expanded, there is no risk of Session loss. Through this article, I hope you can solve this problem. Therefore, this paper summarizes the causes and solutions of the problem. How to use Spring Session and Spring security to complete the login transformation of the website, I believe that many inexperienced people are at a loss about this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |