1.配置
SpringfSecurity已經做好了記住我功能,我我們隻需要做個簡單配置即可,前端傳遞的參數 name="remember-me"
後端配置,userDetailsService用來查詢使用者資訊,persistentTokenRepository儲存使用者辨別
2.原理
3.源碼分析
1.使用者登入成功後,将資訊儲存到資料庫
2.再次請求
SpringfSecurity已經做好了記住我功能,我我們隻需要做個簡單配置即可,前端傳遞的參數 name="remember-me"
後端配置,userDetailsService用來查詢使用者資訊,persistentTokenRepository儲存使用者辨別
1.使用者登入成功後,将資訊儲存到資料庫
2.再次請求