Anirban Chatterjee
Anirban Chatterjee

Reputation: 1

IBM Liberty profile server returning SRTServletRequest instead of spring MultiPartHttpServletRequest

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">

Upvotes: 0

Views: 275

Answers (1)

Anirban Chatterjee
Anirban Chatterjee

Reputation: 1

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

org.springframework.web.multipart.support.MultipartFilter

Upvotes: 0

Related Questions