0

Postman request details I am using IBM Websphere 8.5 Liberty server and trying to send a POST request via Postman. In controller I want to get org.springframework.web.multipart.MultipartHttpServletRequest. But I am getting application server specific SRTServletRequest31 class inside controller class.

How to resolve it?

In my spring configuration file I have following entry. <bean id="multipartResolver class="org.springframework.web.multipart.commons.CommonsMultipartResoler">

  • I also tried by unchecking the content-type but no help. I am getting SRTServletRequest which is server is producing. Although the spring dependencies are properly placed and it should give me a spring MultipartHttpServletRequest, – Anirban Chatterjee Aug 11 '20 at 09:04
  • Can anyone help please? I need to get spring implementation class DefaultMultipartHttpServletRequest instead of SRTServletRequest. How can I plugin spring or wrap the default object to spring specific object? – Anirban Chatterjee Aug 12 '20 at 14:25

1 Answers1

0

The issue got resolved after adding the servlet filter entry for in parent project deployment descriptor. (web.xml).

org.springframework.web.multipart.support.MultipartFilter