简化spring的配置问题
登陆验证完之后直接从request中getsession然后setattribute就好了:request.getSession().setAttribute(WebSecurityConfig.SESSION_KEY, user);