Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConverterNotFoundException when upgrading from 2.4.0 to 2.5.0 #2566

Open
marcel-becker opened this issue Apr 9, 2024 · 2 comments
Open

ConverterNotFoundException when upgrading from 2.4.0 to 2.5.0 #2566

marcel-becker opened this issue Apr 9, 2024 · 2 comments

Comments

@marcel-becker
Copy link

Describe the bug

When I upgrade my gradle dependency version from:

org.springdoc:springdoc-openapi-starter-webmvc-ui:2.4.0
to
org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0

I get an error when starting my spring boot application:

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'springdoc' to org.springdoc.core.properties.SpringDocConfigProperties:

    Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [org.springdoc.core.properties.SpringDocConfigProperties]

Action:

Update your application's configuration

In my application.yml I have:

springdoc:
  swagger-ui:
    operationsSorter: method
    path: /swagger-ui.html

With version 2.4, the applications starts without any problem.

  • If you are reporting a bug, please help to speed up problem diagnosis by providing as
    much information as possible:
  • A clear and concise description of what the bug is: the title of an issue is not enough

To Reproduce
Steps to reproduce the behavior:

  • What version of spring-boot you are using?
    3.2.4
  • What modules and versions of springdoc-openapi are you using?
    2.5.0
  • What is the actual and the expected result using OpenAPI Description (yml or json)?
  • Provide with a sample code (HelloController) or Test that reproduces the problem

Expected behavior

  • A clear and concise description of what you expected to happen.
    The expected behavior is for the application to start normally and be able to browse the swagger ui at the specified endpoint.

  • What is the expected result using OpenAPI Description (yml or json)?
    The error message should provide more details about the specific problem and how to fix it.
    I could not find any documentation describing the changes from 2.4. to 2.5 that could cause this error.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@thijmenketel
Copy link

I'm also facing this issue, did you find a solution?

@marcel-becker
Copy link
Author

@thijmenketel Still waiting for a solution. Using version 2.4 for now.

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

No branches or pull requests

2 participants