核心代码

//    // 从cookie中,获取blade-auth
// javax.servlet.http.Cookie[] cookies = request.getCookies();
// if (ArrayUtil.isNotEmpty(cookies)) {
// for (javax.servlet.http.Cookie cookie : cookies) {
// if (SecureUtil.COOKIE.equals(cookie.getName())) {
// return SecureUtil.parseJWT(cookie.getValue());
// }
// }
// }


CookieName

String COOKIE = "x-access-token";


具体截图

SpringBlade 从cookie中获取token_java

SpringBlade 从cookie中获取token_java_02

SpringBlade 从cookie中获取token_java_03

SpringBlade 从cookie中获取token_java_04