Spring Boot Default Timezone, Locale 설정하기
@SpringBootApplication public class ExampleApplication { @PostConstruct public void started() { TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul")); Locale.setDefault(Locale.KOREA); } public static void main(String[] args) { SpringApplication.run(ExampleApplication.class, args); } } 끝 ~~~
Working log
2021. 12. 14. 14:44
String.format 예제
형식 %[argument_index$][flags][width]conversion Conversion Description s 문자 d 숫자 x 16진수 o 8진수 f 실수 e.g. String strTags = "학교종이 %s 어서 모이자 선생님이 우리를 %s %d"; strTags = String.format(strTags, "땡땡땡", "기다리신다", 12); System.out.println(strTags); 결과 학교종이 땡땡땡 어서 모이자 선생님이 우리를 기다리신다 12 옵션 테스트 flag가 '-'인 경우 왼쪽 정렬이 된다. 길이 설정이 글자 보다 긴 경우 공백으로 채워진다. e.g. System.out.println("12345678901234567890"); System.out.print..
Working log
2021. 12. 2. 09:51
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- REST
- UI
- Spring Boot
- AG-GRID
- 타임리프
- listToMap
- mybatis
- sample
- thymeleaf
- lombok
- cache
- java
- springboot
- 스프링부트
- SHEETJS
- oracle
- RESTful
- ag grid
- 엑셀
- Javascript
- 샘플
- 예제
- 설정
- example
- 스프링
- restful서비스
- 메시지
- mapToList
- 그리드
- spring
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함