Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- mysql 5.5
- REACT
- Effective Java
- MySQL
- current_date
- Effective Java 3/e
- REACTJS
- 퀵소트
- upgrade
- git
- expire_logs_days
- Spring Batch
- Express
- migration
- spring
- log4j2
- JavaScript
- npm
- eslint
- Node
- update
- regex
- log_bin
- Webpack
- java
- Regular expression
- nodejs
- spring cloud
- Chunk
- 정규표현식
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 Webflux][R2DBC] The server timezone is <????> that's unknown, trying to use system default timezone 조지기 (0) | 2025.02.26 |
|---|---|
| [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 |