Any Springfox alternatives out there?

2020-05-26 09:53发布

Last two years I worked on Spring Boot Applications with Springfox. Springfox generate a documentation and a test ui for your REST API. This was awesome.

But actually Springfox project is dead and do not support the newest Spring. I have three questions

  1. Is there any other way to generate Swagger UI directly? Any other library/project?
  2. How do you implement swagger ui into your Spring Boot project?
  3. Maybe im outdated, is there a much more better alternative to the swagger staff for Spring Boot?

Update After months of heavy use and testing of

SpringDoc OpenApi

I would say that is not an alternative to springfox, it is something much better! Stable, easy to use and up to date!

I can 100% recomend this! We migrate all our projects to SpringDoc OpenApi.

2条回答
Explosion°爆炸
2楼-- · 2020-05-26 10:34

I haven't tried it myself yet, but this looks quite promising:

https://github.com/springdoc/springdoc-openapi

OpenAPI is the successor of Swagger, if you haven't heard. Not sure how much this project offers in terms of customization and how mature it is, but I guess it's worth a try ;-)

查看更多
Animai°情兽
3楼-- · 2020-05-26 10:38

Spring doc Open API is alternative going forward.

  1. SpringDoc OpenAPI supports OAS 3.0
  2. Supports more annotations like @MatrixParam which was not supported in springfox.
  3. Spring boot 2.2.x works only with springdoc.

Refer the below link

https://techsparx.com/software-development/openapi/spring-boot-rest-api-docs.html

查看更多
登录 后发表回答