核心代码
// // 从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";
具体截图