使用JHipster (和swaggerUI2.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:
我遇到了一个问题,当我在浏览器中导航到index.html页面时,swagger-ui试图下载它,而不是将其显示为html页面。找不出是什么原因造成的。
我在Spring中使用Swagger 1.3.4。
Spring Config:
@Configuration
public class SwaggerConfig {
@Bean
public BeanConfig beanConfig() {
final BeanConfig beanConfig = new BeanConfig();
beanConfig.setResourcePackage("com.exa