Spring Swagger Interface: what's the difference between io.swagger, io.springfox and com.mangofactory

I am working on integrating the swagger interface with the spring application to load MVC, and I'm curious about the differences between these libraries.

I watched each one at mvnrepository.com and they are all done in different groups, but it seems to do the same. I hope to get a clear idea of ​​the differences between the two, and if one is recommended by the other. I notice that the ia.swagger module uses the most common module.

Thanks!

+5
source share
2 answers

Here is an explanation of the various libraries.

Springfox is in a sense v2 of the swagger library, which used to be packaged as mangofactory . What happened, we moved from using a private repo to creating a github organization to support development as a team.

In short, mangofactory has evolved into springfox , which supports the 2.0 version of the swagger specification (in addition to 1.2). To be clear, Springfox and its predecessor support spring mvc.

io.swagger is the mother ship if you want. It perfectly supports spring and jax-rs. Therefore, if you are looking for Jax-rs-based service support using spring or otherwise, this is a great option.

+4
source

io.swagger is a package for swagger libraries, and you need separate spring jars to associate it with Spring. This is version 2 of swagger.

io.springfox - Springfox Swagger2 in which swagger is integrated with Spring.

com.mangofactory integrated with spring MVC web infrastructure.

To understand the differences between spring Web MVC framework and spring, you can read the following: what is the difference between spring and spring MVC framework

0
source

Source: https://habr.com/ru/post/1244546/


All Articles