0
SecurityManager是一個在啓動時創建並在ThreadContext中爲所有請求引用的單個實例嗎?或者在ThreadContext中有一個SecurityManager的新實例?Apache Shiro - 從哪裏獲得SecurityManager?
我不明白爲什麼SecurityManager取自SecurityUtils中的ThreadContext。這個類有一個靜態安全管理器,它說,不建議靜態,至少如果它在單一的應用程序(桌面)。我正在嘗試在Web開發下理解它。
感謝