전통?적인 PropertyPlaceholderConfigurer 과 SpEL
전통적인? 방법과 SpEL을 사용해 properties파일 가져오는 방법
1. PropertyPlaceholderConfigurer 사용
2. SpEL 사용
아래 2개로 깔끔하게 처리
- <util:properties id="dataProps" location="classpath:properties/data.properties">
- #{dataProps['redis.host']}
1. PropertyPlaceholderConfigurer 사용
2. SpEL 사용
아래 2개로 깔끔하게 처리
- <util:properties id="dataProps" location="classpath:properties/data.properties">
- #{dataProps['redis.host']}
댓글
댓글 쓰기