|
@@ -20,7 +20,6 @@ import org.jeecg.config.shiro.filters.CustomShiroFilterFactoryBean;
|
|
import org.jeecg.config.shiro.filters.JwtFilter;
|
|
import org.jeecg.config.shiro.filters.JwtFilter;
|
|
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
|
|
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.DependsOn;
|
|
import org.springframework.context.annotation.DependsOn;
|
|
@@ -146,6 +145,11 @@ public class ShiroConfig {
|
|
//测试模块排除
|
|
//测试模块排除
|
|
filterChainDefinitionMap.put("/test/seata/**", "anon");
|
|
filterChainDefinitionMap.put("/test/seata/**", "anon");
|
|
|
|
|
|
|
|
+ // update-begin--author:liusq Date:20230522 for:[issues/4829]访问不存在的url时会提示Token失效,请重新登录呢
|
|
|
|
+ //错误路径排除
|
|
|
|
+ filterChainDefinitionMap.put("/error", "anon");
|
|
|
|
+ // update-end--author:liusq Date:20230522 for:[issues/4829]访问不存在的url时会提示Token失效,请重新登录呢
|
|
|
|
+
|
|
// 添加自己的过滤器并且取名为jwt
|
|
// 添加自己的过滤器并且取名为jwt
|
|
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);
|
|
Map<String, Filter> filterMap = new HashMap<String, Filter>(1);
|
|
//如果cloudServer为空 则说明是单体 需要加载跨域配置【微服务跨域切换】
|
|
//如果cloudServer为空 则说明是单体 需要加载跨域配置【微服务跨域切换】
|