TestPropertySource (1) 썸네일형 리스트형 [Spring Boot] 외부 설정 1. 외부 설정 어플리케이션에서 사용할 여러 설정 값들을 어플리케이션의 밖이나 안에 정의할 수 있는 기능 ex) application.properties : Spring Boot가 어플리케이션을 구동할 때 자동으로 로딩하는 파일 ① src/main/resources/application.properties key-value 형태로 정의하면 어플리케이션에서 참조해서 사용할 수 있음 ② 사용 예제 -> 우선순위 15위 import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; .. 이전 1 다음