1.从请求中取得所有Cookie信息:
request.getCookies()
2.通过Cookie名取得Cookie值:
if(request.getCookies()[i].getName().equals(bankIdNameInCookie)){
return request.getCookies()[i].getValue().toString();
}
1.从请求中取得所有Cookie信息:
request.getCookies()
2.通过Cookie名取得Cookie值:
if(request.getCookies()[i].getName().equals(bankIdNameInCookie)){
return request.getCookies()[i].getValue().toString();
}