'springdoc-openapi-ui swagger 3 change API description

I am new to String and Swagger 3. How can I change the default API description i.e. OpenAPI definition in Swagger springdoc-openapi-ui swagger 3

enter image description here

Also version, developer information..

I am using

implementation "org.springframework.boot:spring-boot-starter-web:2.6.6"
implementation "org.springdoc:springdoc-openapi-ui:1.6.8"

In search, I see only they are showing default Swagger UI



Solution 1:[1]

Simply use following annotations :

In application launcher class(Configuration class):

@OpenAPIDefinition(info=@Info(title="Name of project"))

In Controller

import io.swagger.v3.oas.annotations.*

Calss level:

@OpenAPIDefinition()

Or

@Tag(name = "", description = "")

Method level :

 @Operation()

 @ApiResponses()

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1