报错问题 :java.io.FileNotFoundException: class path resource [D:/SCWJ/file/letterLuggageReportDemo.doc] cannot be resolved to absolute file path because it does not exist
ResouceUtils.getFile()是专门用来加载非压缩文件类型的资源的,所以它根本不会去读取jar包中的资源,本地之所以没事是因为本地访问的不是jar而是直接编译的.
问题解决:
使用 new File(param.getDemoPath);