Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 533
Deepjyoti Dutta Avatar asked Sep 11 '25 21:09

Deepjyoti Dutta


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.

like image 68
João Dias Avatar answered Sep 16 '25 09:09

João Dias