Skip to content

Version 1.6.9 does not work together with spring boot 2.7.1 #1736

@Writtscher

Description

@Writtscher

Hi. At the moment we are kinda stuck because we would like to update our gradle dependencies. The problem is that springdoc-ui 1.6.9 does not work with spring boot 2.7.1... We get the following error as we start the service:

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

Description:

Parameter 4 of method indexPageTransformer in org.springdoc.webmvc.ui.SwaggerConfig required a bean of type 'org.springdoc.core.providers.ObjectMapperProvider' that could not be found.

The only way to get around this problem is to provide my own bean of type ObjectMapperProvider.

@Configuration
class SwaggerConfiguration {

  @Bean // Copy for now to fix springdoc-ui issue... Remove as soon as there is a working version
  fun objectMapperProvider(
    springDocConfigProperties: SpringDocConfigProperties
  ): ObjectMapperProvider = ObjectMapperProvider(springDocConfigProperties)
}

Copied from: https://github.com/springdoc/springdoc-openapi/blob/master/springdoc-openapi-common/src/main/java/org/springdoc/core/SpringDocConfiguration.java#L609

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions