Can we use multipart and @RequestBody together in spring?

后端 未结 4 1133
醉酒成梦
醉酒成梦 2021-02-20 06:00

I want to create a API which can have parameter as multipart file and JSON object (@RequestBody). Please find following snippet while calling this API. I am getting HTTP 415 Uns

4条回答
  •  名媛妹妹
    2021-02-20 06:43

    Spring Roo 2.0.0.M3 includes support for automatic scaffolding of a REST API.

    For complete information, see the REST API in the reference manual.

    Note the M3 version generate artifacts that could change in newer versions, so your project might not upgrade automatically if you open it with RC1 or above.

    May the Force be with you.

提交回复
热议问题