springdoc/springdoc-openapi
Tentang
Pustaka untuk OpenAPI 3 dengan Spring Boot
Pengembangan web dan aplikasiYang dapat Anda lakukan
- ๐ Spring Web MVC and Spring WebFlux, including functional endpoints
- ๐ฅ๏ธ Swagger UI and Scalar user interfaces
- ๐ค MCP support, to expose your API as tools for AI agents
- ๐ Spring Security and OAuth 2
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +2
- dalam 15 hari
- +2
- dalam 1 bulan
- +6
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli๐ OpenAPI 3 documentation, Swagger UI and Scalar for Spring Boot, generated from your code
๐ Documentation ยท ๐ Getting started ยท โ๏ธ Properties ยท ๐ฎ Demos ยท โ FAQ ยท ๐ Changelog
๐ Sponsored by
If you โค๏ธ springdoc-openapi, become a sponsor: it covers the project expenses and helps it grow.
springdoc-openapi examines your Spring Boot application at runtime, its controllers, configuration, validation constraints and annotations, and serves an OpenAPI 3 description in JSON and YAML, together with an interactive Swagger UI or Scalar page. Add one dependency: there is nothing to configure. โจ
๐ Getting started
For a Spring Boot 4 web application (Java 17+):
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>3.2.0</version>
</dependency>
Then open ๐ http://localhost:8080/swagger-ui.html. The OpenAPI description is served at /v3/api-docs
(and /v3/api-docs.yaml).
Using WebFlux, Scalar, or only the API description? Pick another starter in the getting started guide.
๐งญ Compatibility
| Spring Boot | springdoc-openapi | Documentation |
|---|---|---|
| ๐ 4.x | 3.x (this branch) | springdoc.org |
| ๐ 3.x | 2.x (spring-boot-3 branch) |
springdoc.org/v2 |
| ๐ 2.x and 1.x | 1.8.0 (end of open-source support) | springdoc.org/v1 |
โจ Modules and features
- ๐ Spring Web MVC and Spring WebFlux, including functional endpoints
- ๐ฅ๏ธ Swagger UI and Scalar user interfaces
- ๐ค MCP support, to expose your API as tools for AI agents
- ๐ Spring Security and OAuth 2
- ๐งฉ Spring Data REST, Spring HATEOAS, Actuator and Spring Cloud Function
- ๐งช Kotlin, Groovy and Javadoc support
- โ
Bean Validation (
@NotNull,@Min,@Max,@Size) and โก GraalVM native images - ๐ ๏ธ API information and security schemes, controller selection and hundreds of properties
- ๐ฆ Maven and Gradle plugins to generate the description at build time
๐ฎ Demos
Try the live demos, for Web MVC, WebFlux, Scalar, Spring Cloud and MCP. Their source code is in springdoc-openapi-demos.
๐ฌ Getting help
- ๐ Read the documentation, the FAQ, and the other resources (tutorials and articles)
- ๐ Migrating? See from SpringFox or from springdoc-openapi v1
- ๐ Ask questions on Stack Overflow with the
springdoctag - ๐ Report bugs in GitHub issues, with a minimal reproducer
- ๐ Report vulnerabilities privately, following the security policy
[!NOTE] springdoc-openapi is a community project, not maintained by the Spring team.
๐ค Contributing
Contributions are welcome! See CONTRIBUTING.adoc and the Code of Conduct.
Thanks to all our contributors ๐
Special thanks to the Spring team and JetBrains for their support.
๐ License
springdoc-openapi is Open Source software released under the Apache 2.0 license.
Jelajahi proyek terkait
Memuatโฆ

