Apache Shiro:SimpleAuthenticationInfo的第一個參數到底是user對象還是username

創建SimpleAuthenticationInfo實例時傳入下列三個參數 SimpleAuthenticationInfo中可以傳四個參數也可以傳三個參數(下面是源碼) 第一個參數,有人說傳的user對象,也有人說傳的是user的username,我們點進SimplePrincipalCollection的構造方法看一下,在創建SimplePrincipalCollection實例的時候傳入的第
相關文章
相關標籤/搜索