shiro 更改登录的用户名 ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal(); user.name = newName;