单点登录 和springSecurity整合 获取登录名

String name = SecurityContextHolder.getContext().getAuthentication().getName();