当前位置: 首页 > news >正文

建设网站内容的策划书重庆建设传动科技有限公司

建设网站内容的策划书,重庆建设传动科技有限公司,wordpress菜单链接地址,如何做好网络营销工作前提#xff1a;先保证Gateway网关项目 和 Nacos注册中心 等可以正常访问和调用#xff0c;搭建方法可查看博文SpringCloud Gateway网关 项目创建 及 整合Nacos开发_spring gateway如何设置工程名称-CSDN博客 类似的全局鉴权方案#xff0c;参考如下#xff1a; SpringClo…前提先保证Gateway网关项目 和 Nacos注册中心 等可以正常访问和调用搭建方法可查看博文SpringCloud Gateway网关 项目创建 及 整合Nacos开发_spring gateway如何设置工程名称-CSDN博客 类似的全局鉴权方案参考如下 SpringCloud Gateway网关 全局过滤器[header token] 实现用户鉴权_gateway添加鉴权过滤器-CSDN博客 核心代码如下  import org.springframework.cloud.gateway.filter.GatewayFilterChain; import org.springframework.cloud.gateway.filter.GlobalFilter; import org.springframework.core.Ordered; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.core.io.buffer.DataBufferFactory; import org.springframework.http.HttpStatus; import org.springframework.http.server.reactive.ServerHttpRequest; import org.springframework.http.server.reactive.ServerHttpResponse; import org.springframework.stereotype.Component; import org.springframework.util.AntPathMatcher; import org.springframework.web.server.ServerWebExchange; import reactor.core.publisher.Mono;import java.nio.charset.StandardCharsets;Component public class GlobalAuthFilter implements GlobalFilter, Ordered {private AntPathMatcher antPathMatcher new AntPathMatcher();Overridepublic MonoVoid filter(ServerWebExchange exchange, GatewayFilterChain chain) {ServerHttpRequest serverHttpRequest exchange.getRequest();String path serverHttpRequest.getURI().getPath();// 判断路径中是否包含 system如果包含system,则不允许访问if (antPathMatcher.match(/**/system/**, path)) {ServerHttpResponse response exchange.getResponse();response.getHeaders().add(Content-Type, application/json;charsetUTF-8);response.setStatusCode(HttpStatus.FORBIDDEN);DataBufferFactory dataBufferFactory response.bufferFactory();DataBuffer dataBuffer dataBufferFactory.wrap(无权限.getBytes(StandardCharsets.UTF_8));return response.writeWith(Mono.just(dataBuffer));//设置状态码 未授权401//exchange.getResponse().setStatusCode(HttpStatus.UNAUTHORIZED);//个人理解,终止输出访问//return exchange.getResponse().setComplete();}return chain.filter(exchange);}/*** 优先级提到最高** return*/Overridepublic int getOrder() {return 0;} }
http://www.hkea.cn/news/14436993/

相关文章:

  • 文案策划网站电商平台运营公司
  • 比较好的网站建设技术开发网站建设私人合同范本
  • 男女做爰高清免费网站设计网页心得体会
  • 网站如何做词wordpress超简洁主题
  • 成都高标建设有限公司官方网站电商网站哪家做的好
  • 衡水网站建设套餐苏州手机网站开发公司
  • 工艺品东莞网站建设素材网站模板
  • 青岛优化网站关键词用哪个程序做网站收录好6
  • 加盟网站模板wordpress顶部通知栏
  • 网站建设次年续费合同口碑好网站建设电话
  • 郑州h5网站建设价格简述网站建设主要流程
  • 响应式网站微博视频杭州外贸网站建设公司排名
  • 青海西宁学做网站在哪做汽车配件外贸用什么网站
  • 网站运营需要什么行业技术熟悉网页设计人机交互实验报告
  • 临沂网站建设哪家好莘县网站建设
  • 文安做网站急切网
  • 企业网站建站软件三亚发布最新消息
  • 大淘客官网做的网站打不开河南建设168工程网官方网站
  • 数据查询网站建设网站开发折旧
  • 权威的郑州网站建设电商网站系统建设
  • 网站建设 客户同程自己建设网站的费用
  • 做金融网站需要什么营业执照河南省建设厅专业业务系统网站
  • 广州市城市建设档案馆网站wordpress子页面
  • 工信部网站icp备案百度广告怎么做
  • 瑞安网站建设公司电商网站开发
  • 曲靖做网站公司成都公租房官方网站
  • 上海网站建设 迈网站建设需要哪些人才
  • jsp做视频网站wordpress邮箱验证码
  • 如何做网站的需求分析软件公司
  • php网站开发实例教程的作者青海旭云网站建设