'application/octet-stream' error not supported我正在使用 Spring Boot,我想使用 Swagger UI 发送带有 json 的 MultipartFile,但如果我使用 Postman 工作得很好,我会收到错误。
@RequestMapping(value = "/upload", method = RequestMethod.POST,
produces = { "application/json" },
consumes = { "multipart/form-data" })
public String hello(
@RequestPart(value = "file") MultipartFile file,
@RequestPart("grupo") Grupo grupo) {
if (file != null) {
logger.info("File name: " + file.getOriginalFilename());
}
logger.info(grupo.toString());
return grupo.toString();
}
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
我正在学习角度1,然而,角度2在Beta中,很快就会发布.
题.
用角度1启动一个网站然后我升级到角度2?或者用typescript?开始制作角度2.
我不知道该怎么做,我不知道我是从角1开始还是已投资角2
谢谢.