springSecurity详解
参考:https://www.jianshu.com/p/ac42f38baf6e
SecurityContextHolder.getContext().getAuthentication().getAuthorities() != null && SecurityContextHolder.getContext().getAuthentication().isAuthenticated() && !SecurityContextHolder.getContext().getAuthentication().getPrincipal().toString().equals("anonymousUser")
经常判断上面是否成立来判断是否是当前用户