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
- LOG4J
- BPMN
- VSCode
- log4j2
- nginx
- maven
- sapfiorielements
- react
- docker
- tibero
- Kubernetes
- database
- Windows
- Git
- gradle
- useEffect
- JPA
- NCP
- IntelliJ
- Linux
- Java
- springboot
- MySQL
- gson
- JavaScript
- dbeaver
- intellijIDEA
- mybatis
- Spring
- nodejs
Archives
- Today
- Total
목록PropertySources (1)
두 손끝의 창조자
test active profile로 @PropertySources 설정
프로파일 별로 다른 DB접속 정보를 사용하기 위해서 아래와 같이 설정하였다. 스프링 부트에 property 파일을 이용해서 설정하던디 -D를 이용해서 환경설정으로 실행했을 때는 문제없이 수행된다. @Configuration @PropertySources({ @PropertySource("classpath:/properties/${spring.profiles.active:local}.properties"), @PropertySource("classpath:/properties/db/biz/${spring.profiles.active:local}.properties"), @PropertySource("classpath:/properties/db/frm/${spring.profiles.active:local}..
Spring
2022. 5. 27. 14:07