struts上传大文件失败的问题

来源:互联网 发布:中文数据库 编辑:程序博客网 时间:2024/05/01 10:28
今天做项目,发现当上传大文件的时候,后台报错,ERROR org.apache.struts2.dispatcher.Dispatcher Exception occurred during processing request: No result defined for action com.jy.aicloud.web.action.app.EpUpgradeAction and result input

No result defined for action com.jy.aicloud.web.action.app.EpUpgradeAction and result input

不同于网上说的那个错误

the request was rejected because its size (16272982) exceeds the configured maximum (9000000)
只需要将struts.xml中加入<constant name="struts.multipart.maxSize" value="20971520" />
即可上传成功

0 0
原创粉丝点击