import org.apache.shiro.SecurityUtils; //登录用户名 String loginAccount = SecurityUtils.getSubject().getPrincipal().toString();