Relative Content

Tag Archive for swaggeropenapispringdocspring-boot-3springdoc-openapi-maven-plugin

Generate Open Api documentation at build/compile time in SpringBoot 3.x application

I am running my application on Spring Boot 3.2.4 with Java 17. For generating Swagger/OpenAPI documentation, I am using Springdoc-OpenApi version 2.5.0. I came across the springdoc-openapi-maven-plugin which can generate the documentation, but it starts the application, generates the OpenAPI documentation, and then stops the application. This behavior is not suitable for my use case. I want to generate the OpenAPI documentation at build time without starting the application in any way.