Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();直接拋異常 顯示為null; 查看完整描述