Skip to content
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

WebMvcRequestHandlerProvider should not use @Component #4070

Open
edhn3000 opened this issue Aug 25, 2023 · 1 comment
Open

WebMvcRequestHandlerProvider should not use @Component #4070

edhn3000 opened this issue Aug 25, 2023 · 1 comment

Comments

@edhn3000
Copy link

springfox-boot-starter 3.0.0
I hope use a var to disable swagger ui html which seems to be 'swagger.enabled=false' or 'springfox.enabled=false' , because swagger ui should be hidden some times, usually it could be true in our develop environment.
but I found the class 'springfox.documentation.spring.web.plugins.WebMvcRequestHandlerProvider' using a @component annotation,I think it may by not good to using it at one spring boot starter jar, and I recommend to make a variable to disable swagger ui page, thank you

@edhn3000
Copy link
Author

edhn3000 commented Aug 25, 2023

It is recommended to using spring boot auto-configurations,in lower version can use /META-INF/spring.factories, in spring boot 2.7 or higher it also can work, but spring boot recommend to using /META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant