GET /swagger-ui.html失败,HTTP 206

时间:2019-02-21 05:20:27

标签: spring-boot swagger

我正在使用带有招摇的2.6.1的spring-boot 1.5.0 RELEASE。我在春季启动应用程序中添加了@EnableSwagger2批注,并定义了Docket类型的@Bean。我没有在任何地方使用@EnableWebMvc注释。我从安全性中排除了swagger-ui.html。当我调用/ v2 / api-docs时,我得到正确的响应JSON。但是,当我调用/swagger-ui.html时,它的HTTP 206失败。在chrome中,它的Failed - No file失败。在控制台中,它显示以下错误-Resource interpreted as Document but transferred with MIME type multipart/byteranges: "http://localhost:8080/swagger-ui.html"

0 个答案:

没有答案