Migrating from springdoc-openapi v1
All the modules have been renamed.
springdoc-openapi-starter-common integrates many spring modules support in order to hide the maximum of complexity.
It allows the support out of the box for Actuator / Spring Cloud Function / Spring Data Rest/ Spring Native/ Spring Hateoas / Spring Securtiy / Kotlin/ Javadoc.
The following table describes the main modules changes:
| springdoc-openapi-v1 | springdoc-openapi-v2 | Description |
|---|---|---|
|
|
Includes foundation |
|
|
For Spring Data Rest support |
|
|
For Groovy support |
|
|
For Spring Hateoas support |
|
|
For Javadoc support |
|
|
For Kotlin support |
|
|
For Spring Security support |
|
|
For Spring WebMvc support |
|
|
For Spring WebFlux support |
|
|
For using the Swagger-UI in a Spring WebMvc context |
|
|
For using the Swagger-UI in a Spring WebFlux context |
| classes/annotations changes |
| springdoc-openapi-v1 | springdoc-openapi-v2 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| Migration tips |
The following modules are not anymore needed and can be removed:
-
springdoc-openapi-javadoc -
springdoc-openapi-kotlin -
springdoc-openapi-data-rest -
springdoc-openapi-security -
springdoc-openapi-webmvc-core -
springdoc-openapi-webflux-core -
springdoc-openapi-hateoas -
springdoc-openapi-groovy
In addition:
-
Replace
springdoc-openapi-uibyspringdoc-openapi-starter-webmvc-ui -
Replace
springdoc-openapi-webflux-uibyspringdoc-openapi-starter-webflux-ui