问题描述
提示:这里描述项目中遇到的问题:
这是个SSM项目,以前经常遇到这个问题,今天有幸记录下来
[ERROR][o.a.s.r.StreamResult] Can not find a java.io.InputStream with the name [downLoadFile] in the invocation stack. Check the <param name="inputName"> tag specified for this action is correct, not excluded and accepted.
[ERROR][o.a.s.d.DefaultDispatcherErrorHandler] Exception occurred during processing request: Can not find a java.io.InputStream with the name [downLoadFile] in the invocation stack. Check the <param name="inputName"> tag specified for this action is correct, not excluded and accepted.
java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [downLoadFile] in the invocation stack. Check the <param name="inputName"> tag specified for this action is correct, not excluded and accepted.
解决方案:
原因没记住,直接说解决方案
首先在IDEA配置的Tomcat
的部署里面加上项目的ROOT
路径
其次选择文件→项目结构
在项目文件里面选择工件,选择war exploded
那个,在输出目录里面选择tomcat
的文件夹,选择webapps
文件夹,在里面新建个文件,名字就是localhost
后面的地址