-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Lazy Initialisation breaks WebFlux support #562
Comments
Unable to reproduce. Just tesed on https://github.com/springdoc/springdoc-openapi-demos/tree/master/springdoc-openapi-test-app3. First of all review your project configuration: This ticket will be closed, and there is no need to reopen a new open for the same issue. If you are reporting a bug, please help to speed up problem diagnosis by providing as much information as possible: You can update your ticket with the necessary information and it will be reopened. Please have a look at the contribution guide section Using GitHub Issues: |
@bnasslahsen I've just tried with the sample app and the problem is there: The only modification I had to make was on the application.yml:
Could you please try it out? I can create a fork of that repo if you want too. |
In fact, i have tested with your first property |
Ah! Apologies! Problem with copying/pasting from the YML file. |
Describe the bug
spring.application.main.lazy-initialization
set totrue
, then it seems the lib drops support for webFlux responses, Mono or Flux.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I tried to debug why this wasn't working and I realized the class
WebFluxSupportConverter
is not getting invoked at all when the Swagger documentation data gets generated. The bean is created but never invoked.The text was updated successfully, but these errors were encountered: