diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java index 1ce6e94c..472cd0b2 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/Crdn01ServiceBean.java @@ -103,7 +103,14 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnServic FieldFinder.setClickHereText(baseFormatFile, "민원내용", strings); String currentTime = ymdhmsFormat.format(new Date()); - String resultPath = "files" + File.separator + "result" + File.separator + currentTime + ".hwp"; + + String formatFileResultRootPath = "files" + File.separator + "result"; + File formatFileResultRootFolder = new File(formatFileResultRootPath); + if(!formatFileResultRootFolder.exists()) { + formatFileResultRootFolder.mkdirs(); + } + String resultPath = formatFileResultRootPath + File.separator + currentTime + ".hwp"; + HWPWriter.toFile(baseFormatFile, resultPath); HWPFile resultFile = HWPReader.fromFile(resultPath);