簡體   English   中英

如何從集合中獲取特定數據? (調試器)

[英]How to get specific data from collection? (Debugger)

我是調試器的初學者。 有人可以告訴我如何獲得這些數據: 在此處輸入圖片說明

我正在嘗試實現具有角色名稱的變量 String。 這是我的代碼:

SecurityContext context = SecurityContextHolder.getContext();
Authentication authentication = context.getAuthentication();

有人可以幫忙嗎? :<

嘗試authentication.getAuthorities() 通常獲取所需信息的方法是在屬性名稱前簡單地添加一個get並將第一個字母轉換為大寫。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM