赞
踩
1、
@GetMapping("/token")
public String testToken(HttpServletRequest request, HttpServletResponse response){
String token = request.getHeader("Authorization");
/*
对token进行校验
*/
//向头部中写入token
response.setHeader("Authorization","token_value");
return "ok";
}
2、在postMan中测试
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。