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

修改上传文件大小方法:
在struts.xml配置文件中,添加
<constant name="struts.multipart.maxSize" value="10485760"/>


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

猜你喜欢

转载自lxmgfd.iteye.com/blog/1697252