Reputation: 261
For enabling Swagger in SpringBoot 2.7 what are the advantages/disadvantages of choosing springdoc-openapi over Springfox
Upvotes: 24
Views: 20287
Reputation: 938
As João Dias has correctly pointed out, Springfox is not maintained.
As a result of that, Springfox libraries don't work with Spring Boot 3.0.x. It is unclear who is going to fix it and whether it will be fixed at all.
At the moment (January 2023) it seems that the developer of a Spring Boot 3.0.x application willing to generate OpenAPI-compliant docs with Swagger is left with two options: a) Switch back to Spring Boot 2.7 and use Springfox for Swagger b) Choose Springdoc over Springfox
Upvotes: 9
Reputation: 17500
This might be considered opinion-based, but actually there are facts supporting the usage of springdoc over Springfox. Some of them:
At least this is my view.
Upvotes: 48