我正在使用下面的大手笔行骗者。
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.8.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.8.0</version>
<scope>compile</scope>
</dependency>
配置
public Docket productApi() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage("com.it"))
.build()
.tags(new Tag("Admin API", "Admin interface to manage users"));
}
控制器
@RequestMapping(value = "/kyc")
@Api(tags = {"Admin API"})
@SwaggerDefinition(tags = {
@Tag(name = "Admin API", description = "Admin interface to manage users")
})
public class KycController
但是在swagger-ui中,标记的描述不是作为用于管理用户的管理界面
来提供的