前言 最近在开发api-gateway的时候遇到了一个问题,网上能够找到的解决方案也很少,之后由公司的大佬解决了这个问题.写下这篇文章记录一下解决方案.希望可以帮助到更多的人. 环境 java版本:8 框架:spring-cloud 2.0.0.RC1 介绍 api-gateway主要接收前端请求,然后对请求的数据进行验证,验证之后请求反向代理到服务器.当请求 method 为 GET 时,可以顺利通过api-gateway.当请求 method 为 POST 时,api-gateway则会报如…