-
Notifications
You must be signed in to change notification settings - Fork 44
Springdoc v2 with Spring 6 (without Spring Boot) #83
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
Currently, there has been no such a request to use Spring 6. If you have any Minimal, Reproducible Example - with HelloController that needs to use springdoc v2, feel free to share. |
@bnasslahsen Maybe you can add this to the list of examples. I'm sure this can be helpful for others too. Two more questions: It seems to be required to specify Do you have a feeling for how complicated it would be to refactor the project so that Spring Boot is an optional dependency and not a required one? There is no real alternative when it comes to Swagger and Spring and I think that there are more projects out there that only use Spring Framework 6 (without Spring Boot). Adding the Spring Boot dependency just for this library adds quite a lot of classes. |
I have attached a sample working sample, where you do not have to reference the springdoc.swagger-ui.version. swagger-ui: http://localhost:1337/swagger-ui.html Let me know if it works for you. |
Thanks for that. It's working and what I was missing was the registration of I updated my repository. |
Thank you for your feedback. |
Uh oh!
There was an error while loading. Please reload this page.
While the documentation for v1 had a FAQ entry on how to use the library in a project without Spring Boot, this entry no longer exists in the v2 documentation.
Does this mean the project is no longer useable in applications that only make use of the Spring Framework 6 without Spring Boot 3?
I think it'd be helpful for others if the answer to this question could be added to the documentation, in case it's not already there and I missed it.
The text was updated successfully, but these errors were encountered: