-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Comments
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
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
The text was updated successfully, but these errors were encountered: