Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpringDoc OpenAPI using "springdoc-openapi-ui" vs "springdoc-openapi-webmvc-core"

Trying to implement spring doc for my microservices at the Spring Cloud gateway level.

Came across these two dependencies. Want to know what is the difference between

"springdoc-openapi-ui" vs "springdoc-openapi-webmvc-core"

and

"springdoc-openapi-ui" vs "springdoc-openapi-ui"

Which dependency to prefer?

like image 634
rolling stone Avatar asked May 01 '26 09:05

rolling stone


1 Answers

Upon checking the source code of springdoc-openapi-ui It has a maven dependency on

<!-- springdoc-core -->
    <dependency>
        <groupId>org.springdoc</groupId>
        <artifactId>springdoc-openapi-webmvc-core</artifactId>
        <version>${project.version}</version>
    </dependency>

springdoc-openapi-ui gives both swaggerUI and json API (along with yaml format).
springdoc-openapi-webmvc-core will only provide the swagger api alone.

like image 174
rolling stone Avatar answered May 04 '26 06:05

rolling stone



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!