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 |
Tags
- Git
- tibero
- wildfly
- LOG4J
- Spring
- JavaScript
- log4j2
- MySQL
- gradle
- maven
- nginx
- database
- IntelliJ
- react
- docker
- kubectl
- Windows
- dbeaver
- JPA
- intellijIDEA
- useEffect
- Kubernetes
- nodejs
- VSCode
- BPMN
- mybatis
- springboot
- NCP
- gson
- Java
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