public static Integer getUid(){
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
String tk = request.getHeader("Authorization");
System.out.println(tk);
return tk;
}
标签:获取信息,静态方法,springboot,request,用户,tk From: https://www.cnblogs.com/Hello233/p/16826003.html