java里取模板文件路径

//模板文件
ClassPathResource classPathResource = new ClassPathResource("template/"+"请款单模板.pdf");
String templatePath = classPathResource.getPath();
原文地址:https://www.cnblogs.com/zhuxiang1029/p/15576479.html