【问题标题】:Swagger2 springboot springfox cannot rename apiSwagger2 springboot springfox无法重命名api
【发布时间】:2016-05-07 21:43:20
【问题描述】:

我尝试使用 @Api 和 @ApiModel 重命名我的 api 引用,但似乎没有任何效果。它总是采用类名。我正在使用 swagger2 + springfox 2.4 + springboot。

【问题讨论】:

  • 请粘贴您的代码,以便我们更好地了解您的问题。

标签: spring-boot swagger swagger-ui swagger-2.0 springfox


【解决方案1】:

实际上我可以使用@Api 中的 tags 属性重命名我的 Api

@Api(tags='NiceName')
public class myapi {...}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-27
    • 1970-01-01
    • 2019-10-10
    • 2015-07-25
    • 2021-12-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多