๐ Documentation ยท ๐ Getting started ยท โ๏ธ Properties ยท ๐ฎ Demos ยท โ FAQ ยท ๐ Changelog
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. โจ
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.
| 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 |
- ๐ 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
Try the live demos, for Web MVC, WebFlux, Scalar, Spring Cloud and MCP. Their source code is in springdoc-openapi-demos.
- ๐ 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.
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.
springdoc-openapi is Open Source software released under the Apache 2.0 license.


