Skip to content

springdoc still not compatible with latest spring native 0.11-M2 #1328

Closed
@goafabric

Description

@goafabric

As already noted in
#1294

Springdoc ist not compatible with the latest spring native version.
It basically still fails with the same exception, see below.
Please note the "Could not resolve placeholder 'springdoc.swagger-ui.version' in value "${springdoc.swagger-ui.version}"

I upgraded to the latest version 1.5.12 of springdoc, while also moving from 0.11-M1 -> 0.11 M2 + Spring Boot 2.6.0-RC1
This is a very simple spring boot project, with no specific configuration for springdoc at all.

--- exception

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfiguration': Unsatisfied dependency expressed through method 'setContentNegotationStrategy' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration': Unsatisfied dependency expressed through method 'setConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'swaggerWebMvcConfigurer': Unsatisfied dependency expressed through method 'swaggerWebMvcConfigurer' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springdoc.core.SwaggerUiConfigParameters': Unexpected exception during bean creation; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'springdoc.swagger-ui.version' in value "${springdoc.swagger-ui.version}"
at org.springframework.aot.beans.factory.InjectedMethodResolver.resolve(InjectedMethodResolver.java:63) ~[na:na]
at org.springframework.aot.ContextBootstrapInitializer.lambda$initialize$5(ContextBootstrapInitializer.java:295) ~[na:na]
at org.springframework.aot.beans.factory.ThrowableFunction.apply(ThrowableFunction.java:18) ~[na:na]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions