Spring Application Context Events 1. ContextRefreshedEvent ApplicationContext를 초기화하거나 새로 고칠 때 Spring은 ContextRefreshedEvent를 발생시킵니다. 2. ContextStartedEvent ConfigurableApplicationContext에서 start() 메서드를 호출하여 이 이벤트를 트리거하고 ApplicationContext를 시작합니다. 이 메서드는 일반적으로 명시적 중지 후 빈을 다시 시작하는 데 사용됩니다. 3. ContextStoppedEvent ContextStoppedEvent는 ConfigurableApplicationContext에서 stop() 메서드를 호출하여 ApplicationCont..
@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); } } 끝 ~~~
형식 %[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..
1. string to array const str = value.split(',') // 구분자 2. array to string const str = arr.join(",") 3. array to set const set = new Set(arr) 4. set to array const arr = Array.from(set) 5. array foreach const arr = v.split(','); const newArr = [] arr.forEach(element => { if(element) newArr.push(element.trim()) }); 6. 배열에 값 추가 // push 마지막에 추가 arr.push(item) // unshift 처음에 추가 arr.unshift("하나") 7. s..
중복 체크 등 함수 호출할 때 예시입니다.
- Total
- Today
- Yesterday
- REST
- oracle
- Spring Boot
- 샘플
- lombok
- springboot
- 설정
- SHEETJS
- 스프링
- 스프링부트
- sample
- 엑셀
- example
- thymeleaf
- 예제
- 메시지
- Javascript
- restful서비스
- mybatis
- spring
- listToMap
- mapToList
- 그리드
- AG-GRID
- UI
- cache
- ag grid
- RESTful
- 타임리프
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |