|
|
|
@@ -93,6 +93,9 @@ public class ShiroConfig { |
|
|
|
shiroFilterFactoryBean.setUnauthorizedUrl("/403"); |
|
|
|
//拦截器. |
|
|
|
Map<String, String> filterChainDefinitionMap = new LinkedHashMap<String, String>(); |
|
|
|
|
|
|
|
// 版本 |
|
|
|
filterChainDefinitionMap.put("/version", "anon"); |
|
|
|
// 官网 |
|
|
|
filterChainDefinitionMap.put("/wxMallApply/add", "anon"); |
|
|
|
filterChainDefinitionMap.put("/wxMallApply/sendvalidationcode", "anon"); |
|
|
|
@@ -130,8 +133,6 @@ public class ShiroConfig { |
|
|
|
filterChainDefinitionMap.put("/swagger-resources/**", "anon"); |
|
|
|
filterChainDefinitionMap.put("/webjars/**", "anon"); |
|
|
|
|
|
|
|
filterChainDefinitionMap.put("/version", "anon"); |
|
|
|
|
|
|
|
// filterChainDefinitionMap.put("/role/**", "corsFilter,token"); |
|
|
|
|
|
|
|
//配置退出 过滤器,其中的具体的退出代码Shiro已经替我们实现了 |
|
|
|
|