From 5070c4c3181d9b25bbf5fd653a8c35bccfb02047 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 17 Jan 2024 14:42:30 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EA=B2=BD=EC=9D=B4=EB=AF=B8=EC=A7=80?= =?UTF-8?q?=20=EA=B2=BD=EB=A1=9C=20=EC=A0=80=EC=9E=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();