文件读取相对路径的方法。。。。

    private static final String template_file_path =  "../../../abc/def/";
          
            Source xmlSource = new StreamSource(bin);
            Source xsltSource = new StreamSource(new File(template_file_path+templateFileName));

猜你喜欢

转载自blog.csdn.net/jintianhen1/article/details/53099541