250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 정규표현식
- eslint
- Spring Batch
- Effective Java
- nodejs
- try catch
- log4j2
- regex
- upgrade
- current_date
- spring cloud
- update
- Effective Java 3/e
- npm
- git
- java
- Chunk
- Node
- expire_logs_days
- 퀵소트
- migration
- spring
- JavaScript
- log_bin
- Express
- Regular expression
- mysql 5.5
- REACTJS
- REACT
- MySQL
Archives
- Today
- Total
내 세상
[Spring] @PropertySource Default 설정 본문
728x90
반응형
@Configuration("Constants")
@PropertySource(value = { "classpath:/application-${spring.profiles.active:testssgg}.properties" })
spring.profiles.active가 없을 때, testssg로 대체됨.
1) -Dspring.profiles.active=dev
application-dev.properties 로드
2) -Dspring.profiles.active=prod
application-prod.properties 로드
3) -Dspring.profiles.active가 없을 때
application-testssg.properties 로드
728x90
반응형
'Technical > Spring' 카테고리의 다른 글
[Spring] ResponseEntity / File Download 구현 (0) | 2021.07.02 |
---|---|
[Spring] URL Shorten 서비스 개발 (0) | 2021.06.23 |
[Spring] 하위 디렉토리/ 폴더 한번에 삭제 하기 (0) | 2020.09.15 |
[Spring] 전역 변수 사용하기 (0) | 2020.08.28 |
[Spring] CORS를 조져보자 -- TBD (0) | 2020.08.24 |