4
我想建立一个独立的swagger-ui应用程序,在一个中心位置查看来自不同服务器的不同API。 在第二步中,我想定制swagger-ui来一次显示多个API。 我不想为所有提供swagger api-docs的服务器添加swagger-ui。如何设置swagger-ui独立服务器/应用程序?
要做到这一点,我想使用弹簧引导,并认为这应该是一件容易的事。但是,我无法使其工作。
这里是我做过什么:
- 生成使用https://start.spring.io
- 包括
spring-boot-starter-web
- 添加
io.springfox:springfox-swagger-ui:2.3.1
依赖
当打开http://localhost:8080/swagger-ui.html我看到一个404错误和UI一个春天启动应用程序似乎破了: