# gateway_resource_starter **Repository Path**: a_bad_fox/gateway_resource_starter ## Basic Information - **Project Name**: gateway_resource_starter - **Description**: spring cloud gatewaye 自动注入静态资源映射 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2020-11-28 - **Last Updated**: 2024-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gateway_resource_starter #### 介绍 spring cloud gatewaye 自动注入静态资源映射 #### 使用说明 ```xml cn.yogehaoren gateway_resource_starter 0.1 ``` 配置`spring cloud gateway`配置文件 ```yaml static-rewrite: static-resources: # 路径需要转译 '[/static/**]': file:E:/static/ # 配置物理路径地址 '[/summarize/**]': file:/root/peacetrue/document-antora/public/ # 配置类路径地址 '[/classpath/**]': classpath:public/ ``` #### 设计细节 具体设计细节请参阅[spring cloud gateway 自动注入静态资源映射](https://ironblog.cn/archives/gatewayresourcestarter)