From 4b7e4a75ef4c596bc1624619f23cbda8900ecaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A3=BC=EC=9B=90?= Date: Fri, 15 Aug 2025 19:18:44 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20(=20#31=20)=20:=20lisenseConfig=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/hs/kr/entrydsm/user/global/config/LicenseConfig.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/casper-user/src/main/kotlin/hs/kr/entrydsm/user/global/config/LicenseConfig.kt b/casper-user/src/main/kotlin/hs/kr/entrydsm/user/global/config/LicenseConfig.kt index cdfc75a..afbc828 100644 --- a/casper-user/src/main/kotlin/hs/kr/entrydsm/user/global/config/LicenseConfig.kt +++ b/casper-user/src/main/kotlin/hs/kr/entrydsm/user/global/config/LicenseConfig.kt @@ -7,6 +7,7 @@ import java.io.IOException import java.net.URL import java.nio.file.Files import java.nio.file.Paths +import java.nio.file.StandardCopyOption /** * 패스 인증 라이센스 파일을 다운로드하고 설정하는 클래스입니다. @@ -18,13 +19,14 @@ class LicenseConfig( ) { /** * 애플리케이션 시작 시 라이센스 파일을 다운로드합니다. + * 기존 파일이 있어도 최신 버전으로 덮어씁니다. */ @PostConstruct fun initialize() { try { URL(licenseFileURl).openStream() .use { inputStream -> - Files.copy(inputStream, Paths.get(PATH)) + Files.copy(inputStream, Paths.get(PATH), StandardCopyOption.REPLACE_EXISTING) } } catch (e: IOException) { e.printStackTrace()