struts2.0中修改下传文件大小的方法

struts2.0中修改上传文件大小的方法修改上传文件大小方法:在struts.xml配置文件中,添加constant namest

struts2.0中修改上传文件大小的方法
修改上传文件大小方法:
在struts.xml配置文件中,添加

<constant name="struts.multipart.maxSize" value="10485760"/>


这里的value单位为B,即10485760B = 10MB。