diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index af61ab80..a34e7a9f 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -646,8 +646,7 @@ public class Sprt01Controller extends ApplicationController { String deptCd = currentUser.getDeptCode(); String sggCd = globalStngMapper.selectSggCd(deptCd); - String bgPath = "files"+File.separator+"background" - +File.separator+sggCd; + String bgPath = "files/background/"+sggCd; String ext = FilenameUtils.getExtension(backgroundFile.getOriginalFilename()); String fileName = otptForm.getTaskSeCd()+"-"+otptForm.getSndngSeCd()+"-"+otptForm.getPaperSeCd()+"."+ext; @@ -655,7 +654,7 @@ public class Sprt01Controller extends ApplicationController { File workDir = new File(bgPath); workDir.mkdirs(); try { - String bgFullPath = bgPath + File.separator + fileName; + String bgFullPath = bgPath + "/" + fileName; File newFile = new File(bgFullPath); if(newFile.exists()) { newFile.delete();