已采纳回答 / 慕勒0069038
貌似fileinputstream 读文件相对路径 在web中是从webroot开始的吧 你用System.out.println(new File(".").getAbsolutePath()); 看下当前路径是什么 然后改改路径试试
2017-03-29