springsecurity刷新登录用户信息
解决方法:
designer就是用户对象,其实和你第一次登陆时的代码差不多
UsernamePasswordAuthenticationToken usernamePasswordAuthenticationToken = new UsernamePasswordAuthenticationToken(designer, designer.getPassword(), designer.getAuthorities());
SecurityContextHolder.getContext().setAuthentication(usernamePasswordAuthenticationToken);