在struts.xml配置文件中,添加<constant name="struts.multipart.maxSize" value="10485760"/> 这里的value单位为B,即10485760B = 10MB。 xml