Unable to find 'struts.multipart.saveDir' property setting

windows下正常,可在linuex下部署struts2的项目,上传时提示:

INFO: Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir

 

这需要设置下上传临时目录,即在struts.xml下增加配置:
<constant name="struts.multipart.saveDir" value="/temp"/>

 

你可能感兴趣的:(struts)