设置session的值
//获取请求对象
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
//获取session 对象
HttpSession session = request.getSession();
//向session中设置数据
session.setAttribute("wrongPhone","18900008888");
//取session中的数据
String msg = (String)session.getAttribute("wrongPhone");