Swagger 大摇大摆的用户界面不';不能正确显示

Swagger 大摇大摆的用户界面不';不能正确显示,swagger,jhipster,Swagger,Jhipster,使用JHipster(和swagger ui 2.1.5),我想访问“API”选项卡 但是,它似乎没有正确显示,我在控制台中遇到以下错误: index.html:8 GET http://localhost:8080/swagger-ui/css/typography.css index.html:10 GET http://localhost:8080/swagger-ui/css/screen.css index.html:15 GET http://localhost:8080/swag

使用JHipster(和swagger ui 2.1.5),我想访问“API”选项卡

但是,它似乎没有正确显示,我在控制台中遇到以下错误:

index.html:8 GET http://localhost:8080/swagger-ui/css/typography.css
index.html:10 GET http://localhost:8080/swagger-ui/css/screen.css 
index.html:15 GET http://localhost:8080/swagger-ui/lib/jquery.slideto.min.js 
index.html:14 GET http://localhost:8080/swagger-ui/lib/jquery-1.8.0.min.js 
index.html:16 GET http://localhost:8080/swagger-ui/lib/jquery.wiggle.min.js 
index.html:18 GET http://localhost:8080/swagger-ui/lib/handlebars-2.0.0.js 
index.html:17 GET http://localhost:8080/swagger-ui/lib/jquery.ba-bbq.min.js 
index.html:19 GET http://localhost:8080/swagger-ui/lib/lodash.min.js 
index.html:21 GET http://localhost:8080/swagger-ui/lib/swagger-ui.min.js 
index.html:13 GET http://localhost:8080/swagger-ui/lib/object-assign-pollyfill.js 
index.html:22 GET http://localhost:8080/swagger-ui/lib/highlight.9.1.0.pack.js 
index.html:20 GET http://localhost:8080/swagger-ui/lib/backbone-min.js 
index.html:24 GET http://localhost:8080/swagger-ui/lib/jsoneditor.min.js 
index.html:25 GET http://localhost:8080/swagger-ui/lib/marked.js 
index.html:23 GET http://localhost:8080/swagger-ui/lib/highlight.9.1.0.pack_extended.js 
index.html:26 GET http://localhost:8080/swagger-ui/lib/swagger-oauth.js 
index.html:9 GET http://localhost:8080/swagger-ui/css/reset.css 
index.html:12 GET http://localhost:8080/swagger-ui/css/print.css 
index.html:14 GET http://localhost:8080/swagger-ui/lib/jquery-1.8.0.min.js 
index.html:15 GET http://localhost:8080/swagger-ui/lib/jquery.slideto.min.js 
index.html:16 GET http://localhost:8080/swagger-ui/lib/jquery.wiggle.min.js 
index.html:17 GET http://localhost:8080/swagger-ui/lib/jquery.ba-bbq.min.js 
index.html:18 GET http://localhost:8080/swagger-ui/lib/handlebars-2.0.0.js 
index.html:19 GET http://localhost:8080/swagger-ui/lib/lodash.min.js 
index.html:20 GET http://localhost:8080/swagger-ui/lib/backbone-min.js 
index.html:21 GET http://localhost:8080/swagger-ui/lib/swagger-ui.min.js 
index.html:22 GET http://localhost:8080/swagger-ui/lib/highlight.9.1.0.pack.js 
index.html:23 GET http://localhost:8080/swagger-ui/lib/highlight.9.1.0.pack_extended.js 
index.html:24 GET http://localhost:8080/swagger-ui/lib/jsoneditor.min.js 
index.html:25 GET http://localhost:8080/swagger-ui/lib/marked.js 
index.html:26 GET http://localhost:8080/swagger-ui/lib/swagger-oauth.js
index.html:34 Uncaught ReferenceError: $ is not defined
    at index.html:34

我使用的是Eclipse(STS发行版),我担心这可能是一个项目配置问题,但由于我对它相当陌生,所以我无法找到问题的根源

编辑:

我正在使用Maven,无论我是通过STS还是命令行启动应用程序,错误仍然会发生

除了我想测试的一个服务外,该项目是生成的

此外,我刚刚生成了一个新的JHipster应用程序,错误仍然存在

编辑“:

在我可以使用这些服务的边缘上,显示效果确实更好

我还注意到,未更改的应用程序在Edge上显示良好


我正在使用另一个应用程序来模拟它的服务,它可能运行的是JHipster、Swagger。。。这使得问题再次出现,但这次是边缘


删除浏览器的缓存文件修复了Edge和Chrome的错误。

您的控制台日志很奇怪,我的显示,不同之处在于“dist”子文件夹,但我在JHipster 4(master)上运行。您尝试过在其他浏览器中运行吗?查看最新JHipster 3生成的示例应用程序中的swagger ui/index.html,您应该会看到对bower_components文件夹的引用:所以我想知道您使用的是哪个版本我使用的是JHipster Generator v3.12.2和bower v1.8.0I,在同一位置也有您提到的完全相同的文件。