在 Java 中,为了从相对路径读取文件,经常会使用的方法便是: xxx.class. ... getResource("some/resource/path/myTemplate.txt"); 复制代码.
確定! 回上一頁