| | |
| | | import org.jeecg.config.shiro.filters.JwtFilter; |
| | | import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator; |
| | | 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.Configuration; |
| | | import org.springframework.context.annotation.DependsOn; |
| | |
| | | filterChainDefinitionMap.put("/sys/common/static/**", "anon");//图片预览 &下载文件不限制token |
| | | filterChainDefinitionMap.put("/sys/common/pdf/**", "anon");//pdf预览 |
| | | filterChainDefinitionMap.put("/generic/**", "anon");//pdf预览需要文件 |
| | | filterChainDefinitionMap.put("/sys/user/updatePassword", "anon");//首页用户修改密码 |
| | | |
| | | filterChainDefinitionMap.put("/sys/getLoginQrcode/**", "anon"); //登录二维码 |
| | | filterChainDefinitionMap.put("/sys/getQrcodeToken/**", "anon"); //监听扫码 |
| | |
| | | filterChainDefinitionMap.put("/**/*.css", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.html", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.svg", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.SVG", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.pdf", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.PDF", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.jpg", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.JPG", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.png", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.PNG", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.gif", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.GIF", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.ico", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.ICO", "anon"); |
| | | |
| | | |
| | | // update-begin--Author:sunjianlei Date:20190813 for:排除字体格式的后缀 |
| | | filterChainDefinitionMap.put("/**/*.ttf", "anon"); |
| | |
| | | filterChainDefinitionMap.put("/jmreport/**", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.js.map", "anon"); |
| | | filterChainDefinitionMap.put("/**/*.css.map", "anon"); |
| | | |
| | | //设备完好率报表排除 |
| | | filterChainDefinitionMap.put("/eam/repairOrder/equipmentAvailability", "anon"); |
| | | //生产故障间隔时间报表排除 |
| | | filterChainDefinitionMap.put("/eam/faultIntervalTime/getMTBF", "anon"); |
| | | filterChainDefinitionMap.put("/eam/faultIntervalTime/**","anon"); |
| | | //设备可开动率报表排除 |
| | | filterChainDefinitionMap.put("/eam/repairOrder/getStartRate", "anon"); |
| | | filterChainDefinitionMap.put("/eam/faultIntervalTime/get2MTBF", "anon"); |
| | | //大屏模板例子 |
| | | filterChainDefinitionMap.put("/test/bigScreen/**", "anon"); |
| | | filterChainDefinitionMap.put("/bigscreen/template1/**", "anon"); |
| | |
| | | //测试模块排除 |
| | | filterChainDefinitionMap.put("/test/seata/**", "anon"); |
| | | |
| | | |
| | | // 添加自己的过滤器并且取名为jwt |
| | | Map<String, Filter> filterMap = new HashMap<String, Filter>(1); |
| | | //如果cloudServer为空 则说明是单体 需要加载跨域配置【微服务跨域切换】 |