문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:springboot:properties [2021/02/20 23:02] kwon37xi |
springframework:springboot:properties [2021/09/28 18:09] kwon37xi |
||
---|---|---|---|
줄 6: | 줄 6: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | |||
+ | ===== 기본값 설정 ===== | ||
+ | * 이미 지정된 property 이면, 해당 값을 사용하고, | ||
+ | * '' | ||
+ | <code yml> | ||
+ | testing: | ||
+ | my: | ||
+ | username: ${external.username: | ||
+ | password: ${external.password: | ||
+ | </ | ||
+ | * [[https:// | ||
+ | |||
+ | <code yml> | ||
+ | testing: | ||
+ | my: | ||
+ | username: ${external.username: | ||
+ | password: ${external.password:# | ||
+ | </ | ||
+ | <code java> | ||
+ | @Value(" | ||
+ | private String username; | ||
+ | |||
+ | @Value(" | ||
+ | private String password; | ||
+ | </ | ||
===== profile 별 설정 ===== | ===== profile 별 설정 ===== |