我正在尝试设置一个swagger ui,但是我无法对从URL https://github.com/swagger-api/swagger-ui复制的swagger-ui-master代码做同样的事情 .

下载上面的内容,复制dist下的内容将它们放在src / main / webapp下的我的web应用程序上下文中并进行maven build.I尝试在tomcat框中部署相同内容并编辑index.html文件指向http://localhost:8080/ /test.json的路径为我提供了JSON格式的api的全面列表 .

我看到JSON格式的错误响应为

{
"status": "notFound",
"errorMessage": "null for uri: http://localhost:8080/<webapp_context>/index.html",
"errorCode": null,
"additional": null
}

任何指针 . 谢谢你