springdoc-openapi icon indicating copy to clipboard operation
springdoc-openapi copied to clipboard

ConverterNotFoundException when upgrading from 2.4.0 to 2.5.0

Open marcel-becker opened this issue 1 year ago • 0 comments

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.

marcel-becker avatar Apr 09 '24 15:04 marcel-becker