天天看點

Shiro + JWT + SpringBoot + MySQL + Redis(Jedis)實作無狀态鑒權機制(Restful風格API)

序言

首先感謝SmithCruise提供的思路,文章位址:https://www.jianshu.com/p/f37f8c295057

根據SmithCruise的項目進行後續更新

  • 将其改為資料庫形式(MySQL)
  • 實作Shiro的Cache(Redis)功能
  • 解決無法直接傳回401錯誤
  • Token重新整理(RefreshToken)

我的項目位址

  • Github:https://github.com/wang926454/ShiroJwt
  • Gitee(碼雲):https://gitee.com/dolyw/ShiroJwt

目錄

  • 将其改為資料庫形式(MySQL):https://blog.csdn.net/wang926454/article/details/82971442
  • 解決無法直接傳回401錯誤:https://blog.csdn.net/wang926454/article/details/82971846
  • 實作Shiro的Cache(Redis)功能:https://blog.csdn.net/wang926454/article/details/82978632