Skip to content

Conversation

@jamesmissen
Copy link

This PR addresses issue #3145, and does the following:

  • Removes the springdoc.webjars.prefix property in favour of the spring.mvc.webjars-path-pattern and spring.webflux.webjars-path-pattern properties.

  • Fixes the incorrect order of uiRootPath for the resource handler mapping patterns.

  • Removes the erroneous use of uiRootPath at the start of the WebJar mapping.

  • Ensures that WebJar mappings are not added if resource mappings at /webjars/** have been disabled (i.e. if spring.web.resources.add-mappings has been set to false)

  • Make the behaviour of WebJar mappings consistent between WebFlux and WebMvc, as both map WebJar resources to /webjars/** by default.

  • Modify and add tests to ensure that the WebJar mappings work correctly (as expected by issue Swagger UI shows petstore swagger by default in webflux #2969).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant