PropertyPlcaceholderConfigurer 썸네일형 리스트형 스프링 프로퍼티 설정 주입1 - @PropertySource와 Enviroment 스프링 프로젝트를 하면서 jdbc 설정 값, version 등과 같이 정적인 데이터를 프로퍼티로 많이 사용합니다. 우리는 프로퍼티를 annotation으로 쉽게 외부값을 가져와서 사용할 수 있습니다. 스프링에서 런타임시 프로퍼티 값을 가져오기 위해서 사용할 것 2가지.PropertySource 스프링 표현 언어 SpEL(spring Expression Language) @PropertySource를 선언. @Configuration @PropertySource("classpath:static/properties/common.properties") public class AppConfig { } @PropertySource 어노테이션에 coommon.properties의 위치를 넣어주면, Enviromen.. 더보기 이전 1 다음