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