# sw **Repository Path**: driftfloat/sw ## Basic Information - **Project Name**: sw - **Description**: Spring Cloud Gateway整合Swagger2 Demo - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 28 - **Created**: 2022-11-09 - **Last Updated**: 2022-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sw #### 项目介绍 Spring Cloud Gateway整合Swagger2 Demo > 该项目中使用的原生swagger2,也可使用swagger4all 配置,具体配置可参见[这个代码块](https://gitee.com/Lixin_ma/codes/clztvxh6fpkb0qynw5dja60) > 以下为swagger4all 的常用配置,常用配置也可参见[spring4all的源码地址](https://github.com/SpringForAll/spring-boot-starter-swagger) - `swagger.enabled=是否启用swagger,默认:true` - `swagger.title=标题` - `swagger.description=描述` - `swagger.version=版本` - `swagger.license=许可证` - `swagger.licenseUrl=许可证URL` - `swagger.termsOfServiceUrl=服务条款URL` - `swagger.contact.name=维护人` - `swagger.contact.url=维护人URL` - `swagger.contact.email=维护人email` - `swagger.base-package=swagger扫描的基础包,默认:全扫描` - `swagger.base-path=需要处理的基础URL规则,默认:/**` - `swagger.exclude-path=需要排除的URL规则,默认:空` - `swagger.host=文档的host信息,默认:空` - `swagger.globalOperationParameters[0].name=参数名` - `swagger.globalOperationParameters[0].description=描述信息` - `swagger.globalOperationParameters[0].modelRef=指定参数类型` - `swagger.globalOperationParameters[0].parameterType=指定参数存放位置,可选header,query,path,body.form` - `swagger.globalOperationParameters[0].required=指定参数是否必传,true,false`