Closed
Description
Describe the bug
On application startup, this error:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 5 of method springDocProviders in org.springdoc.core.SpringDocConfiguration required a bean of type
'org.springdoc.core.providers.SpringWebProvider' that could not be found.
Looking at the changes in this code, this method parameter is clearly newly required in Springdoc 1.6.4.
To Reproduce
Steps to reproduce the behavior:
- Spring-Boot 2.6.2
- Including a library which itself depends on
org.springdoc:springdoc-openapi-common
- Not including
org.springdoc:springdoc-openapi-ui
- Not explicitly setting
springdoc.api-docs.enabled
tofalse
Expected behavior
- The application starts up fine, as it did with Springdoc 1.6.3
Further notes
I can resolve this by explicitly setting springdoc.api-docs.enabled
to false
, but I thought to raise the issue in case:
- other people hit this issue and find it helpful having the resolution highlighted, and/or
- this change was not intentional and the maintainers would like to adjust the library behaviour.
Metadata
Metadata
Assignees
Labels
No labels