Add JSON message converter for multipart/form-data

前端 未结 2 1987
无人及你
无人及你 2021-02-14 18:06

In my Spring MVC server I want to receive a multipart/form-data request containing both a file (an image) and some JSON metadata. I can build a well-formed multipart request whe

2条回答
  •  臣服心动
    2021-02-14 18:42

    i don't have any idea how do it this but i know @RequestParam("json") MyClass myClass u can change to @RequestParam("json") String myClass and build object class by JSON converted! It's not good but it's works

提交回复
热议问题