無(wú)法獲取Session中的短信,為null
httpServletRequest.getSession().setAttribute(telphone,otpCode);//保存 String?sessionOtpCode?=?(String)?this.httpServletRequest.getSession().getAttribute(telphone);獲取 號(hào)碼是對(duì)的
httpServletRequest.getSession().setAttribute(telphone,otpCode);//保存 String?sessionOtpCode?=?(String)?this.httpServletRequest.getSession().getAttribute(telphone);獲取 號(hào)碼是對(duì)的
舉報(bào)
2019-05-02
$.ajax({
type:"POST",
contentType:"application/x-www-form-urlencoded",
url:"http://localhost:8090/user/login",
data:{
"telphone":$("#telphone").val(),
"password":password,
},
xhrFields: {withCredentials: true},
前端頁(yè)面加上?xhrFields: {withCredentials: true},