Migrating from springfox swagger2 to springdoc openapi

前端 未结 2 823
挽巷
挽巷 2021-02-05 12:30

https://www.dariawan.com/tutorials/spring/documenting-spring-boot-rest-api-springdoc-openapi-3/

Trying to follow these

How do I deal with annotations like

<
2条回答
  •  天命终不由人
    2021-02-05 12:53

    You can update Swagger2 annotations to Swagger3 (supported by springdoc).

    Article with helpful regexps: https://www.david-merrick.com/2017/11/15/useful-regexes-for-transitioning-swagger-2-0-to-3-0-annotations/

    Both @ApiModel and @ApiModelProperty need to be replaced with @Schema (io.swagger.v3.oas.annotations.media.Schema)

提交回复
热议问题