简体   繁体   中英

Springboot + springfox + swagger2 + swagger-ui

How can i access the generated swagger-ui.html ? Or index.html I cant seem to find this file in my project. Aghhhh!

I ended up pulling the swagger-ui dist files from git

https://github.com/swagger-api/swagger-ui/tree/master/dist

I placed them inside public directory and modified swagger-ui.html

For the library setup which you have mentioned, the following will be the URL to access the UI -

PROTOCOL://HOST:PORT/CONTEXT_NAME/swagger-ui.html

Eg: http://localhost:8083/xms/swagger-ui.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM