Easter79 Easter79
2年前
springcloud文件上传文件名乱码
问题multipartfile取出来的文件名中文乱码。排查问题:单独的server文件上传有无问题gateway访问文件上传有无问题gateway的/zuul访问是否有问题配置spring:http:encoding:charset:UTF
Easter79 Easter79
2年前
springcloud zuul 网关 持久化 动态加载路由的思路分析
在springcloud最新的版本已经有了自己的gateway组件   目前世面上都是基于netflix出品 zuul的gateway    一般我们在生产上都希望能将路由动态化持久化 做动态管理基本设想思路 通过后台页面来管理路由  然后刷新配置  本文将探索一下如何进行zuul路由的数据库持久化 动态化 建议
Easter79 Easter79
2年前
springcloud 定义切面实现对请求操作记录日志,方便后面分析接口详情
1packagecom.idoipo.infras.gateway.open.config;23importcom.alibaba.fastjson.JSON;4importcom.alibaba.fastjson.JSONObject;5importcom.idoipo.
Easter79 Easter79
2年前
Thingsboard Gateway开发环境
源码下载地址:https://github.com/thingsboard/thingsboardgateway(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fthingsboard%2Fthingsboardgateway)国内大神源码地址:htt
Easter79 Easter79
2年前
SpringCloud Gateway 身份认证
使用SpringCloud技术栈搭建微服务集群,可以选择的组件比较多,由于有些组件已经闭源或停更,这里主要选用springcloudalibaba作为我们的技术栈。服务注册与发现:nacosdiscovery统一配置管理:nacosconfig微服务网关:springcloudgateway由
Stella981 Stella981
2年前
API网关【gateway 】
最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析。由于采用了大量的nginx相关的东西,所以在此记录一下:在nginx使用openresty加入nginx模块编辑nginx下conf配置文件nginx.confvinginx.c
Stella981 Stella981
2年前
Spring Web Reactive Ajax 跨域的坑
吐槽一下,在使用springcloudgateway作为网关时遇到的ajax跨域一坑爹的问题。springcloudgateway使用org.springframework.cloud.gateway.handler.RoutePredicateHandlerMapping进行路由匹配;而RoutePredicateHandler
Wesley13 Wesley13
2年前
ubuntu 网络配置
修改ip:vi/etc/network/interfacesautoeth0ifaceeth0inetstaticaddress192.168.1.120netmask255.255.255.0gateway192.168.1.1修改dns:vi/etc/resolvconf/reso
Easter79 Easter79
2年前
SpringCloud 组件之 Gateway
SpringCloud组件之Gateway(微服务网关)概述不同的微服务会有不同的网络地址,客户端需要调用多个服务的接口才能完成一个业务需求。网关的作用1.整合各个微服务功能,形成一套系统(最主要的作用)2.在微服务网关
Stella981 Stella981
2年前
DHCP 广播 客户机自动获取ip
DHCP:DynamicHostConfigurationProtocol前身是bootplease:租约续租:租约到一半的时候就要申请续租广播:第一个响应的服务器广播申请,广播响应广播回复确认  IP:MASK:GATEWAY:DNS: ClientDHCPDI