请问下,注解我都加上了,页面我也加上了,但是debug取出的数据还是null
@CrossOrigin(allowCredentials="true",allowedHeaders = "*")
@CrossOrigin(allowCredentials="true",allowedHeaders = "*")
2019-01-11
我发现otpCode数据没有放到Session里面去
httpServletRequest.getSession().setAttribute(telphone,otpCode); System.out.println("telphone:="+telphone+":otpCode:="+otpCode); String testCode = (String) this.httpServletRequest.getSession().getAttribute("telphone"); System.out.println(":testCode:="+testCode); testCode是空
举报