-
-
Notifications
You must be signed in to change notification settings - Fork 528
Springdoc-openapi-webmvc-core not enought for Springdoc-openapi-native #1442
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
Comments
So make sure you review your configuration. |
Okay, i'll try to provide you an example project, but the problem is obvious for me, The demo webmvc you are referencing is using the ui dependency:
What i use is only le webmvc-core Regards |
Here your example project, a small spring initializr with springdoc-openapi-native and springdoc-openapi-webmvccore |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When only using the Springdoc-openapi-webmvc-core and adding Springdoc-openapi-native, the application fails to start since SpringDocHints expect a bean SwaggerUiConfigProperties why is i guess provided by auto-configuration in springdoc-openapi-ui
To Reproduce
Steps to reproduce the behavior:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springdoc.nativex.core.SpringDocHints': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springdoc.core.SwaggerUiConfigProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
Expected behavior
Workaround
@Bean public SwaggerUiConfigProperties swaggerUiConfigProperties() { return new SwaggerUiConfigProperties(); }
The text was updated successfully, but these errors were encountered: