0
点赞
收藏
分享

微信扫一扫

获取根目录下面的模板文件路径

获取根目录下面的模板文件路径

public static final String CONTRACT_ROOT_URL = "/template";
Resource contractPath = new ClassPathResource(CONTRACT_ROOT_URL);
String path = contractPath.getURI().getPath();
String templatePath = path + File.separator + "myTemplateFile.docx";

 

举报

相关推荐

0 条评论