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 does not work after passing from 2.9.2 to 3.0.0 #3441
Comments
|
Please read the migration docs. NOTE: that swagger-ui location has changed. Let me summarize the changes for you here, you could do one of two things for swagger-ui to show up. It looks like you have a spring boot app, so just replace the two springfox dependencies with |
|
Thanks for the response Dilip. |
|
If you tried the two methods, then you should've seen the swagger-ui @ |
|
Ohh, that's the problem! I was using an old bookmarked url... |
|
Mystery solved |
|
Have the same issue. i have a pretty common spring-boot mvn app, which used happily the springfox swagger 2.9.2 packages: in maven deps: <dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-bean-validators</artifactId>
<version>2.9.2</version>
</dependency>It worked perfectly on test url Then tried to upgrade to 3.0.0 with these steps:
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
When I access the |
|
Note, that behind the scenes the swagger schemes mostly are setup
e.g. {
"deepLinking": true,
"displayOperationId": false,
"defaultModelsExpandDepth": 1,
"defaultModelExpandDepth": 1,
"defaultModelRendering": "example",
"displayRequestDuration": false,
"docExpansion": "none",
"filter": false,
"operationsSorter": "alpha",
"showExtensions": false,
"showCommonExtensions": false,
"tagsSorter": "alpha",
"validatorUrl": "",
"supportedSubmitMethods": [
"get",
"put",
"post",
"delete",
"options",
"head",
"patch",
"trace"
],
"swaggerBaseUiUrl": ""
}juat, the /swagger-ui/ path is not mapped to a handler |
|
This was a false alarm. I've found a controller request mapping with the antipattern "/{xxx}/...." - - that caused the error. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue. |
|
It is not working |
After upgrading the version to the latest (3.0.0) I receive a 404 when I try to access to http://localhost:8080/swagger-ui.html.
My config details are:
The text was updated successfully, but these errors were encountered: