类路径文件读取方式

0 查看原文 ↗

1、../ftl/csbg.doc替换成你的文件相对路径****

1 String csbgPath=this.getClass().getResource(”../ftl/csbg.doc”).toURI().getPath();

💬 评论