Are there any advantages of using/migrating to springdoc-openapi from Springfox?

Viewed 2415

For enabling Swagger in SpringBoot 2.7 what are the advantages/disadvantages of choosing springdoc-openapi over Springfox

1 Answers

This might be considered opinion-based, but actually there are facts supporting the usage of springdoc over Springfox. Some of them:

  • springdoc is a much more recent library that does not have so much legacy code as Springfox.
  • As a consequence of the first one, springdoc is actually updated regularly and the amount of open issues is relatively small (only 11 vs 270 on Springfox).
  • It simply works easily and without major issues in the most recent Spring Boot versions.
  • Springfox seems abandoned, to say the least.

At least this is my view.

Related