Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack. Check the

Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack. Check the tag specified for this action.

今天写文件下载时遇到这个问题,上网查了资料,才知道eclipse中有两个路径

一个是发布路径,就是保存文件的路径,一个是发布路径,是tomcat发布的路径,比如

在webcontent下创建一个文件夹,如果不修改发布路径,则上传文件时不会上传到这个

文件夹里,而是上传到tomcat默认的发布路径下,即使项目能正常运行也不代表是正确

的,如果想要将文件上传到创建的文件夹里或者从里面下载,就需要修改发布路径

Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack. Check the

圈起来的是发布路径,红线是改过之后的样子

修改过后就能上传或者下载wencontent里创建的文件夹里的内容了

https://blog.csdn.net/Sky_rabbit94/article/details/81063994
更详细的讲解
https://blog.csdn.net/meiqi0538/article/details/81237945
修改server locations无法选择的情况