Demo地址:
https://github.com/GodwinGodwin/redisauth.git
使用cookie+redis方式token權鑒
常量
常量
cookie工具類
權限校驗
verificatePermissions
controller
controller中的test()
controller中的login()
controller中的logout()
權限測試時用到的方法
html頁面
test.html頁面
https://github.com/GodwinGodwin/redisauth.git
使用cookie+redis方式token權鑒