Skip to content

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

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

Closed
goafabric opened this issue Nov 5, 2021 · 1 comment
Closed

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

goafabric opened this issue Nov 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@goafabric
Copy link

goafabric commented Nov 5, 2021

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]

@bnasslahsen
Copy link
Collaborator

@goafabric,

springdoc-openapi is tested against the latest spring-native stable release - as per today: 0.10.5
For 0.11-M2, it is a milestone release. We will not invest on it and wait for the official 0.11.x release, to make sure we are working on a relatively stable version.

Don't hesitate to report any issue, with the latest stable releases of spring-native.

bnasslahsen added a commit that referenced this issue Nov 28, 2021
…able-native-image-support and introduce new springdoc module). Fixes #1328
@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
mpleine pushed a commit to mpleine/springdoc-openapi that referenced this issue May 17, 2025
…able-native-image-support and introduce new springdoc module). Fixes springdoc#1328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants