/** 加载三类资源 */
public void refreshCache() {
publicResources = authorityService.getResourceNamesByScope(Resource.Scope.PUBLIC);
if (null != authenticationEntryPoint && authenticationEntryPoint instanceof UrlEntryPoint) {
UrlEntryPoint fep = (UrlEntryPoint) authenticationEntryPoint;
String loginResource = authorityService.extractResource(fep.getLoginUrl());
if (null != loginResource) {
publicResources.add(loginResource);
}
}
protectedResources = authorityService.getResourceNamesByScope(Resource.Scope.PUBLIC);