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

http://localhost:8080/spring-xml-swagger/swagger-ui.html is not working #97

Open
scchaitha opened this issue Aug 20, 2020 · 3 comments
Open
Labels

Comments

@scchaitha
Copy link

@dilipkrish

Can you pls check the readme file, I am not able to get to access the swagger-ui url.
However the open api docs,url is working. http://localhost:8080/spring-xml-swagger/v2/api-docs

I am trying to understand how the spring xml context is working with swagger. I am planning to hook up the swagger in the already spring app context xml. Any help here would be really appreciated.

@scchaitha
Copy link
Author

I tried to update the dispatch-servlet.xml.

<mvc:resources location="classpath:/META-INF/resources/webjars/springfox-swagger-ui/" mapping="/swagger-ui/index.html"/>
<mvc:resources location="classpath:/META-INF/resources/webjars/" mapping="/webjars/**"/>

But still does now work. Can you pls take a look at this? Once this is good. I will integrate the application with Swagger for open api documentation. This will be a complete POC I can show at my company.

@scchaitha
Copy link
Author

Actually it works. Pls change the Readme file to update the swagger UI url to the one below for spring-xml-swagger project

Swagger UI

http://localhost:8080/spring-xml-swagger/swagger-ui/index.html

@dilipkrish
Copy link
Member

Thanks for reporting!

@dilipkrish dilipkrish added the bug label Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants