2013-02-22 55 views

回答

8

您可以使用SecurityContextHolder.getContext().getAuthentication().getAuthorities()獲取當前登錄的用戶角色的集合。

相關問題