Oakeye, thanks for your response again.
That configuration is already on my application-context.xml.
I have:
Code:<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="maxUploadSize" value="${maxUploadSize}"/> </bean>But i still having no luck with the rest template. I will post an example of what a have in my project as soon as possible.Code:<bean id="restTemplate" class="org.springframework.web.client.RestTemplate"> <constructor-arg ref="httpClientFactory" /> <property name="messageConverters"> <list> <bean class="org.springframework.http.converter.ByteArrayHttpMessageConverter"/> <bean class="org.springframework.http.converter.FormHttpMessageConverter" /> <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter" /> </list> </property> </bean>
Btw, what do you think that i missing?
For the message of the exception that i getting:
I think that i need an special converter. Something like an MultipartConverter...Code:Could not write request: no suitable HttpMessageConverter found for request type [org.springframework.web.multipart.commons.CommonsMultipartFile]


Reply With Quote
