Skip to content
Discussion options

You must be logged in to vote

Overriding the WebJar in Maven is not enough. You also need to set springdoc.swagger-ui.version=5.34.1 in your application config (application.properties or application.yml).

Springdoc does not look up the WebJar version at runtime. It reads the version from its own config and builds the resource location from it, META-INF/resources/webjars/swagger-ui/<version>/:

String swaggerUiResourceLocation = WEBJARS_RESOURCE_LOCATION + SWAGGER_UI_WEBJAR_NAME + DEFAULT_PATH_SEPARATOR +
swaggerUiConfigProperties.getVersion() + DEFAULT_PATH_SEPARATOR;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lcsalvess
Comment options

Answer selected by lcsalvess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants