1、把../ftl/csbg.doc替换成你的文件相对路径
1 String csbgPath=this.getClass().getResource("../ftl/csbg.doc").toURI().getPath();
1、把../ftl/csbg.doc替换成你的文件相对路径
1 String csbgPath=this.getClass().getResource("../ftl/csbg.doc").toURI().getPath();
转载于:https://www.cnblogs.com/bigroc/p/8421930.html