正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -19,7 +19,7 @@ public class CustomXmlMaker { | @@ -19,7 +19,7 @@ public class CustomXmlMaker { | ||
19 | private Configuration freemakerTemplate; | 19 | private Configuration freemakerTemplate; |
20 | 20 | ||
21 | @Value("${custom.send-path}") | 21 | @Value("${custom.send-path}") |
22 | - private String sendPath; | 22 | + private String sendPaths; |
23 | 23 | ||
24 | @Value("${tcs.mq-number}") | 24 | @Value("${tcs.mq-number}") |
25 | private String TCSMQNumber; | 25 | private String TCSMQNumber; |
@@ -42,7 +42,7 @@ public class CustomXmlMaker { | @@ -42,7 +42,7 @@ public class CustomXmlMaker { | ||
42 | * @param tplName 模板名称 | 42 | * @param tplName 模板名称 |
43 | * @param fileName 生成的报文名称 | 43 | * @param fileName 生成的报文名称 |
44 | * @param manifestMap 数据实体 | 44 | * @param manifestMap 数据实体 |
45 | - * @param sendPath 生成路径 | 45 | + * @param sendPath 生成路径 传入的参数没用 运用配置文件中的路径 |
46 | * @return 0失败,1成功 | 46 | * @return 0失败,1成功 |
47 | * @throws IOException | 47 | * @throws IOException |
48 | */ | 48 | */ |
@@ -50,7 +50,7 @@ public class CustomXmlMaker { | @@ -50,7 +50,7 @@ public class CustomXmlMaker { | ||
50 | try { | 50 | try { |
51 | Template template = freemakerTemplate.getTemplate(tplName); | 51 | Template template = freemakerTemplate.getTemplate(tplName); |
52 | String content = FreeMarkerTemplateUtils.processTemplateIntoString(template,manifestMap); | 52 | String content = FreeMarkerTemplateUtils.processTemplateIntoString(template,manifestMap); |
53 | - String filename = sendPath+fileName; | 53 | + String filename = sendPaths+fileName; |
54 | File sendfile = new File(filename); | 54 | File sendfile = new File(filename); |
55 | FileUtils.writeStringToFile(sendfile,content,"UTF-8"); | 55 | FileUtils.writeStringToFile(sendfile,content,"UTF-8"); |
56 | }catch (IOException e){ | 56 | }catch (IOException e){ |
-
请 注册 或 登录 后发表评论