Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();直接抛异常 显示为null; 查看完整描述