-
-
Notifications
You must be signed in to change notification settings - Fork 528
Using without Spring Boot #250
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
Hi @prowave, You just need to scan for the following springdoc class: For example, you can simply add on your application that ships the springdoc-openapi dependency: |
Hi, Thank's |
Hi @nmasilva, Please have a look at the answer on stackoverflow:
If you have a sample project to reproduce your issue, you can add the link for it on github and will have a look at it. |
Hi @bnasslahsen Thank you for your reply.
If you removed the springboot and openapi dependencies in the war project pom, as de @import in the AppInitializer.java, it will work and you'll get as response 202 with the message: "Hello World!" Thank you, |
You can find attached, a sample working configuration for spring apps (without spring-boot). |
Hi @bnasslahsen Thank you for the sample. Works like a charm :) Thank again, |
Great ! |
We have Spring framework (version 5.3.22) based application, not a spring boot. We have added springdoc-openapi (1.6.11) dependency along with below openapi configuration.
In our application, we have multiple projects having mixed of Java configurations and XML based configurations. Both types of classes (java config like @controller/@service and XML definitions like <bean id="".... >) are having dependencies injected through @Autowred. The classes having beans created through component scanning (@controller/@service) are working well, all the injected dependecies are resolved as expected. Without this springdoc-openpi dependency and these OpenApiConfig, we are not facing this issue. Does anyone have more insights here ? |
Hi, did u solve ur problem ? I have the same one. |
I have a project that I cannot convert to a Spring Boot project due to older dependencies. Can you provide a guide to use this project without Spring Boot? Is it possible?
Thank you for providing this.
The text was updated successfully, but these errors were encountered: