将 springfox 迁移到带有注释的 springdoc-openapi-ui 问题

Migrating springfox to springdoc-openapi-ui issue with annotations

Spring狐狸:

@ApiOperation(value = "Gets the status for ID",
   consumes = "application/json",
   produces = "application/json",
   response = xyz.class)

Spring文档:

@Operation(summary = "Gets the status for ID",
   consumes = "application/json",
   produces = "application/json",
   response = xyz.class)

在这里我可以用 summary 替换 value 但不知道用什么来代替 consumesproducesresponse 可以有人帮忙吗?

我尝试使用 @Tags 但它不起作用。有人可以建议解决此问题的方法吗?

我已经使用@RouterOperation 解决了我的问题

  @RouterOperation(operation = @Operation(summary = "Gets the status for ID"),
          consumes = "application/json",
          produces = "application/json",
          parameterTypes = xyz.class)