After migration to struts 2.3.24, file upload still not supported for greater than 2gb

南楼画角 提交于 2019-12-02 03:49:49

Why are you declaring a bean, if the documentation is not telling you to do so ?

Just change

<bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest" name="jakartaStream"
     class="org.apache.struts2.dispatcher.multipart.JakartaStreamMultiPartRequest" 
     scope="default" />
<constant name="struts.multipart.parser"  value="jakartaStream" />

to the right configuration that should be (hyphenized, not capitalized):

<constant name="struts.multipart.parser"  value="jakarta-stream" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!