允许在 websphere 中进行随意的多部分解析?

allowing casual multipart parsing in websphere?

简单地询问如何在 websphere 中允许随意的多部分解析 true 因为我知道我们在 context.xml 中使用 tomcat 但是因为我是 websphere 的新手没有 idea.Can 任何人帮助我在这?

Set to true if Tomcat should automatically parse multipart/form-data request bodies when HttpServletRequest.getPart* or HttpServletRequest.getParameter* is called, even when the target servlet isn't marked with the @MultipartConfig annotation (See Servlet Specification 3.0, Section 3.2 for details). Note that any setting other than false causes Tomcat to behave in a way that is not technically spec-compliant. The default is false.

当前,当 servlet 未根据 servlet 规范设置时,Websphere 不支持解析多部分请求主体。但是,您可以在应用程序的 web.xml 中设置 servlet 来执行此操作,而不是使用注释。例如:

<servlet>
    <servlet-name>MyServlet</servlet-name>
    <multipart-config>
        <max-file-size>100000</max-file-size>
        <max-request-size>200000</max-request-size>
        <file-size-threshold>50000</file-size-threshold>
    </multipart-config>
</servlet>

https://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/cweb_webcontainer_behavior.html