How to process a multipart request consisting of a file and a JSON object in Spring restful service?

前端 未结 9 1220
一生所求
一生所求 2020-12-08 07:47

I have the following resource (implemented using Spring 4.05.RELEASE) which accepts a file and a JSON object:

(P.S. activityTemplate is a serializable entity class)<

9条回答
  •  醉话见心
    2020-12-08 08:28

    Exception is thrown because you don't have appropriate HttpMessageConverter, to process multipart/form-data request. Workaround

提交回复
热议问题