From c60f23ad2ee624081f0970cd098275553c44f9e7 Mon Sep 17 00:00:00 2001 From: Uno Date: Mon, 12 Jul 2021 02:04:45 +0900 Subject: [PATCH] Add #3 - properties migrator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 넣어보고, 프로퍼티에 과거 로그백 설정 세팅 테스트 돌리니 안내 문구 표시되는 것 확인 ``` Property source 'Config resource 'classpath:/application.properties' via location 'optional:classpath:/'': Key: logging.pattern.rolling-file-name Line: 1 Replacement: logging.logback.rollingpolicy.file-name-pattern ``` --- build.gradle | 3 ++- src/main/resources/application.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index e07df82..cfd24cc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'org.springframework.boot' version '2.5.2' + id 'org.springframework.boot' version '2.4.0' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'java' } @@ -13,6 +13,7 @@ repositories { } dependencies { + implementation 'org.springframework.boot:spring-boot-properties-migrator' implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8b13789..786f4b2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1 @@ - +logging.pattern.rolling-file-name=rolling.txt