|
|
@ -77,6 +77,14 @@ public class ShiroConfig {
|
|
|
|
shiroFilter.setFilters(filters);
|
|
|
|
shiroFilter.setFilters(filters);
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> filterMap = Maps.newLinkedHashMap();
|
|
|
|
Map<String, String> filterMap = Maps.newLinkedHashMap();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 加载排除URL
|
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(URL_EXCLUSION)){
|
|
|
|
|
|
|
|
for (String excUrl : URL_EXCLUSION) {
|
|
|
|
|
|
|
|
filterMap.put(excUrl, "anon");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
filterMap.put("/webjars/**", "anon");
|
|
|
|
filterMap.put("/webjars/**", "anon");
|
|
|
|
filterMap.put("/druid/**", "anon");
|
|
|
|
filterMap.put("/druid/**", "anon");
|
|
|
|
filterMap.put("/app/**", "anon");
|
|
|
|
filterMap.put("/app/**", "anon");
|
|
|
@ -92,13 +100,6 @@ public class ShiroConfig {
|
|
|
|
filterMap.put("/static/file/**", "anon");
|
|
|
|
filterMap.put("/static/file/**", "anon");
|
|
|
|
filterMap.put("/**", "oauth2");
|
|
|
|
filterMap.put("/**", "oauth2");
|
|
|
|
|
|
|
|
|
|
|
|
// 加载排除URL
|
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(URL_EXCLUSION)){
|
|
|
|
|
|
|
|
for (String excUrl : URL_EXCLUSION) {
|
|
|
|
|
|
|
|
filterMap.put(excUrl, "anon");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
shiroFilter.setFilterChainDefinitionMap(filterMap);
|
|
|
|
shiroFilter.setFilterChainDefinitionMap(filterMap);
|
|
|
|
|
|
|
|
|
|
|
|
return shiroFilter;
|
|
|
|
return shiroFilter;
|
|
|
|