获取根目录下面的模板文件路径
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";