You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

springdoc-openapi请求以application/octet-stream发送而非multipart/form-data求助

问题:springdoc-openapi发送请求时错误使用application/octet-stream而非multipart/form-data

我遇到springdoc-openapi发送请求时,错误使用application/octet-stream而非multipart/form-data的问题,尝试过Stack Overflow上的多种解决方案均无效。

我的依赖版本信息如下:

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.5</version>

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
    <version>2.1.0</version>
</dependency>

曾参考过类似问题:OpenApi发送包含JSON的MultipartFile请求时,出现'application/octet-stream'类型不支持的错误。

恳请社区帮忙解决此问题。

内容的提问来源于stack exchange,提问作者Shashwat Pandey

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.20 10:57:40