public static UserInfo getUserInfo() {
        return (UserInfo) SecurityUtils.getSubject().getPrincipal();
    }
according to token to get isUserInfo.

@return UserInfo {@link UserInfo}
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/JwtUtils.java