macrozheng / mall-swarm

mall-swarm是一套微服务商城系统,采用了 Spring Cloud 2021 & Alibaba、Spring Boot 2.7、Oauth2、MyBatis、Docker、Elasticsearch、Kubernetes等核心技术,同时提供了基于Vue的管理后台方便快速搭建系统。mall-swarm在电商业务的基础集成了注册中心、配置中心、监控中心、网关等系统功能。文档齐全,附带全套Spring Cloud教程。

Home Page:https://www.macrozheng.com/admin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openFeign服务调用通过FeignRequestInterceptor拦截器传递请求头参数导致乱码

xiaoerbuer3 opened this issue · comments

问题:存在前台 ->A->B的服务请求调用链路,前台请求的request的Accept-Encoding=gzip, deflate, br ,从A将前台传的request header设置进去后,导致响应乱码
解决方法:在FeignRequestInterceptor中去除Accept-Encoding的参数传递
image

        请参考https://blog.csdn.net/mycar001/article/details/78391028