Skip to content

springdoc not compatible any more with spring native 0.11.0-M1 #1294

Closed
@goafabric

Description

@goafabric

Basically what we already had from upgrading spring native 0.9 -> 0.10
Support seems to be again broken in 0.11.0-M1.
Currently don't know if this is on spring's side or not .. but maybe keep an eye on that.

While verything is fine with 0.10.x, 0.11 in combination with springdoc 1.5.10,
just raises the following error during bootstrap:

-- cut --
'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}"

There seems to be a problem with the ConfigProperties or the properties resource that is loaded .. maybe again an additional hint has to be set.

Upgrading to springdoc 1.5.11 doesnt help, as then everthing already breaks during compilation
--- cut ---
2021-10-11 09:26:54.966 INFO 2094 --- [ main] o.s.a.c.b.ContextBootstrapContributor : Detected application class: org.***.calleeservice.Application
2021-10-11 09:26:54.970 INFO 2094 --- [ main] o.s.a.c.b.ContextBootstrapContributor : Processing application context
java.lang.IllegalStateException: Lifecycle method annotation 'org.springdoc.webmvc.ui.SwaggerWelcomeWebMvc.init' not found on: class org.springdoc.webmvc.ui.SwaggerWelcomeWebMvc
at org.springframework.aot.context.bootstrap.generator.infrastructure.InitDestroyMethodsDiscoverer.findMethod(InitDestroyMethodsDiscoverer.java:181)
at org.springframework.aot.context.bootstrap.generator.infrastructure.InitDestroyMethodsDiscoverer.processInitMethods(InitDestroyMethodsDiscoverer.java:89)

=> Again this is more a kind request to getting it fixed for the upcoming spring native 0.11, because this already includes Java17 and will be the foundation for a lot of upcoming spring changes

Thank you ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions