Skip to content

Upgrade from Springdoc 1.6.3 to 1.6.4 causes issues if springdoc-openapi-common is on the classpath but springdoc-openapi-ui is not #1446

Closed
@oliverlockwood

Description

@oliverlockwood

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 to false

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions