springdoc / springdoc-openapi-demos

Demo for OpenAPI 3 with spring-boot
http://springdoc.org
Apache License 2.0
493 stars 267 forks source link

Document code Migrating spring fox is not correct #56

Closed huudev closed 1 year ago

huudev commented 1 year ago

Hi, currently I see the page https://springdoc.org/ section 8. Migrating from SpringFox

line .addMethodFilter(method -> method.isAnnotationPresent(Admin.class)) should be replaced with .addOpenApiMethodFilter(method -> method.isAnnotationPresent(Admin.class))

Thank.

huudev commented 1 year ago

sorry, i have the wrong repository