简体   繁体   English

如何使用无注释的招摇

[英]How to use swagger without annotations

I am working on a java project which does not use spring boot. 我正在不使用Spring Boot的Java项目中工作。 I am asked to integrate swagger into my project. 我被要求将大张旗鼓整合到我的项目中。 I have been searching the internet on how to do it without spring boot, but I have found no clue. 我一直在互联网上搜索如何在没有弹簧启动的情况下进行操作,但是我没有发现任何线索。

Manual is the way to go. 手动是必经之路。 Luckily, they have a tool! 幸运的是,他们有一个工具! https://swagger.io/tools/swagger-editor/ The other great thing is that Swagger is not Java specific so it can be re-used for other REST implementations in other languages. https://swagger.io/tools/swagger-editor/另一个很棒的事情是Swagger不是Java特定的,因此可以将其重新用于其他语言的其他REST实现。

Spring Boot is just an integration for Swagger. Spring Boot仅仅是Swagger的集成。 You can also make use of Swagger withtout using Spring Boot. 您还可以使用Spring Boot在不使用Swagger的情况下使用。

You can use Swagger core library for getting Swagger to work. 您可以使用Swagger核心库来使Swagger正常工作。

https://github.com/swagger-api/swagger-core https://github.com/swagger-api/swagger-core

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM