티스토리 뷰
728x90
@Value("${some.key:my default value}")
private String stringWithDefaultValue;
@Value("${some.key:})"
private String stringWithBlankDefaultValue;
@Value("${some.key:true}")
private boolean booleanWithDefaultValue;
@Value("${some.key:42}")
private int intWithDefaultValue;
@Value("${some.key:one,two,three}")
private String[] stringArrayWithDefaults;
@Value("${some.key:1,2,3}")
private int[] intArrayWithDefaults;
@Value("#{systemProperties['some.key'] ?: 'my default system property value'}")
private String spelWithDefaultValue;
https://www.baeldung.com/spring-value-defaults
728x90
'공부 (@Deprecated)' 카테고리의 다른 글
| [macosx] iterm cursor move (1) | 2023.11.03 |
|---|---|
| [kotlin] How can I break out of a Kotlin `repeat` loop? (0) | 2023.11.03 |
| [Spring] Query String 파싱, @RequestParam (0) | 2023.11.03 |
| [Spring] security http antMatcher with multiple paths (0) | 2023.11.03 |
| [locale] zh-Hans, zh-Hant, zh-rCN, zh-tTW (0) | 2023.11.03 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 리퍼럴 코드 생성
- 김달
- 개리마커스
- 테슬라 리퍼럴 코드
- 인스타그램
- 책그림
- 레퍼럴
- 연애학개론
- 클루지
- follower
- COUNT
- 메디파크 내과 전문의 의학박사 김영수
- 어떻게 능력을 보여줄 것인가?
- wlw
- 모델y
- 테슬라 레퍼럴 적용 확인
- Kluge
- Bot
- 할인
- 테슬라 추천
- 테슬라 크레딧 사용
- 모델 Y 레퍼럴
- 테슬라
- 테슬라 레퍼럴
- 유투브
- 테슬라 레퍼럴 코드 확인
- 팔로워 수 세기
- 테슬라 리퍼럴 코드 혜택
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함