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
swagger-ui.html
is not found - HTTP404
#402
Comments
Hi @vilmosnagy, As stated in the Spring Boot reference documentation, when you use You have two solutions:
@Configuration
public class WebConfig implements WebFluxConfigurer {
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/webjars/**")
.addResourceLocations(CLASSPATH_RESOURCE_LOCATION+"/webjars/")
.resourceChain(true)
.addResolver(new WebJarsResourceResolver());
}
} |
Thanks for the quick reply. |
Hi @bnasslahsen , i used |
I don't know the context of your question, which is not clear and the code is not even formatted. Please follow the contribution guidelines. |
Hi @bnasslahsen , sorry for the typing issue. So i am using spring cloud gateway in my code. and i have included
and i am able to load this
but when i actually try to load my swagger endpoint (v3/api-docs), it gives me error. ( http://localhost:8080/v3/api-docs) 404. not found. hope you understand the issue. |
You have here a fully working sample of spring cloud gateway. And if you are still struggling, please make sure you Provide a Minimal, Reproducible Example - with HelloController that reproduces the problem |
TLDR: this is the duplicate of the issue #361, but:
Describe the bug
I do run
spring-boot
2.2.2-RELEASE
withspringdoc-openapi-webflux-ui
1.2.29
.The following requests give me the following statuses:
(TLDR: it's the same as in the mentioned issue, the
swagger-ui.html
redirects me somewhere, and that page does not load)To Reproduce
Steps to reproduce the behavior:
mvn spring-boot:run
in the command lineExpected behavior
Screenshots
Nothing extraordinary, the standard Spirng-Boot error page.
Additional context
My problem is the same as in #361, but I was able to create an MVCE.
The text was updated successfully, but these errors were encountered: