문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
java:string_format [2017/08/10 12:55] kwon37xi [Slf4j MessageFormatter] |
java:string_format [2017/08/10 14:59] kwon37xi |
||
---|---|---|---|
줄 8: | 줄 8: | ||
<code java> | <code java> | ||
- | /** | + | // sf의 뜻? simple format, slf4j format, ... |
- | * Slf4j의 문자열 포맷 형태로 sf("hi {}, hello {}", " | + | // 주의: " |
- | * <em>주의: " | + | |
- | * @see MessageFormatter | + | |
- | */ | + | |
public static String sf(String messagePattern, | public static String sf(String messagePattern, | ||
return MessageFormatter.arrayFormat(messagePattern, | return MessageFormatter.arrayFormat(messagePattern, |