Api annotation's description is deprecated

前端 未结 5 784
南方客
南方客 2021-01-31 07:12

In Swagger, the @Api annotation\'s description element is deprecated.

Deprecated. Not used in 1.5.X, kept for legacy support.

5条回答
  •  时光取名叫无心
    2021-01-31 07:43

    This is the correct way to add description to your Swagger API documentation for Swagger v1.5:

    @Api(tags = {"Swagger Resource"})
    @SwaggerDefinition(tags = {
        @Tag(name = "Swagger Resource", description = "Write description here")
    })
    public class ... {
    }
    

提交回复
热议问题