Authentication auth = new UsernamePasswordAuthenticationToken(用户名, 密码, 角色); SecurityContextHolder.getContext().setAuthentication(authzMgr.doAuthentication(auth));
67,538
社区成员
225,852
社区内容
加载中
试试用AI创作助手写篇文章吧