Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实现Docket的分组功能 #206

Open
dyc87112 opened this issue Dec 16, 2020 · 1 comment
Open

实现Docket的分组功能 #206

dyc87112 opened this issue Dec 16, 2020 · 1 comment

Comments

@dyc87112
Copy link
Member

目前(2.0.0版本)对单个Docket已经实现大部分之前版本的配置功能,但对于多docket的配置还未实现。

该功能说明可见:https://github.com/SpringForAll/spring-boot-starter-swagger#%E5%88%86%E7%BB%84%E9%85%8D%E7%BD%AE

具体配置样例如下;

- swagger.docket.<name>.title=标题
- swagger.docket.<name>.description=描述
- swagger.docket.<name>.version=版本
- swagger.docket.<name>.license=许可证
- swagger.docket.<name>.licenseUrl=许可证URL
- swagger.docket.<name>.termsOfServiceUrl=服务条款URL
- swagger.docket.<name>.contact.name=维护人
- swagger.docket.<name>.contact.url=维护人URL
- swagger.docket.<name>.contact.email=维护人email
- swagger.docket.<name>.base-package=swagger扫描的基础包,默认:全扫描
- swagger.docket.<name>.base-path=需要处理的基础URL规则,默认:/**
- swagger.docket.<name>.exclude-path=需要排除的URL规则,默认:空
- swagger.docket.<name>.name=参数名
- swagger.docket.<name>.modelRef=指定参数类型
- swagger.docket.<name>.parameterType=指定参数存放位置,可选header,query,path,body.form
- swagger.docket.<name>.required=true=指定参数是否必传,true,false

参考资料

贡献方法

  • fork本项目
  • clone自己fork的项目
  • 基于master分支开发
  • 自己测试ok
  • 提交代码到自己fork的项目
  • 提交Pull requests
@llin6025
Copy link
Collaborator

#217 已合入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants