# spring-cloud-learning **Repository Path**: jianglongwang/spring-cloud-learning ## Basic Information - **Project Name**: spring-cloud-learning - **Description**: 对Gateway的学习 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: feature - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-28 - **Last Updated**: 2022-02-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springcloud #### Description 对Gateway的学习 ## spring-cloud-gateway-demo ### Routes ### Filters ####### 缓存Body数据方式一(暂未调通) - `LogReqGatewayFilterFactory` 使用 [SpringBoot官方文档](https://docs.spring.io/spring-cloud-gateway/docs/4.0.0-M1/reference/html/#the-cacherequestbody-gatewayfilter-factory) 中的CacheRequestBodyGatewayFilter方式 ####### 缓存Body数据方式二 - `CacheBodyFilter` 设置为最高优先级执行,以便缓存body参数 - `ConsumerCacheBodyFilter` 读取缓存的body信息,以便后续的操作(记录日志,加密解密,认证/鉴权,统计分析) - `WebConfig` 上传文件时会存在 Part部分默认大小(256KB)限制,设置为-1表示无限制 # Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)