springfox-demos icon indicating copy to clipboard operation
springfox-demos copied to clipboard

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

Open scchaitha opened this issue 4 years ago • 3 comments

@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 avatar Aug 20 '20 14:08 scchaitha

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 avatar Aug 21 '20 01:08 scchaitha

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

scchaitha avatar Aug 21 '20 02:08 scchaitha

Thanks for reporting!

dilipkrish avatar Aug 24 '20 17:08 dilipkrish