spring security 加载数据权限配置的时候
一般通过public DefaultFilterInvocationSecurityMetadataSource(UrlMatcher urlMatcher,
LinkedHashMap<RequestKey, Collection<ConfigAttribute>> requestMap) {
this.urlMatcher = urlMatcher; for (Map.Entry<RequestKey, Collection<ConfigAttribute>> entry : requestMap.entrySet()) {
addSecureUrl(entry.getKey().getUrl(), entry.getKey().getMethod(), entry.getValue());
}
}来加载配置的权限
但是还有一个ConfigAttribute类似的类GrantedAuthority,这个类和ConfigAttribute差不多,有些人喜欢用来它来装载用户的权限?
大家能说话它两有什么区别吗?Spring Security
一般通过public DefaultFilterInvocationSecurityMetadataSource(UrlMatcher urlMatcher,
LinkedHashMap<RequestKey, Collection<ConfigAttribute>> requestMap) {
this.urlMatcher = urlMatcher; for (Map.Entry<RequestKey, Collection<ConfigAttribute>> entry : requestMap.entrySet()) {
addSecureUrl(entry.getKey().getUrl(), entry.getKey().getMethod(), entry.getValue());
}
}来加载配置的权限
但是还有一个ConfigAttribute类似的类GrantedAuthority,这个类和ConfigAttribute差不多,有些人喜欢用来它来装载用户的权限?
大家能说话它两有什么区别吗?Spring Security
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货