Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- db
- 알고리즘
- Servlet
- SpringBoot
- Proxy
- 자바
- 백준
- Spring Boot
- 스프링 핵심 원리
- pointcut
- QueryDSL
- 인프런
- JDBC
- 스프링 핵심 기능
- JPQL
- transaction
- java
- 김영한
- jpa
- 그리디
- springdatajpa
- Thymeleaf
- AOP
- Android
- 스프링
- spring
- Exception
- kotlin
- http
- Greedy
Archives
- Today
- Total
목록소멸 (1)
개발자되기 프로젝트
인터페이스 : InitializingBean, DisposableBean
1. InitializingBean(초기화) 의존성 주입 완료후 초기화 메서드 제공 afterPropertiesSet() : 의존관계 주입 완료후 실행됨. 2. DisposableBean(소멸) 빈 소멸되기 직전 실행하는 메서드 제공 destroy() 3. Test public class NetworkClient implements InitializingBean, DisposableBean { private String url; public NetworkClient(){ System.out.println("생성자 호출, url =" + url); } public void setUrl(String url) { this.url = url; } //서비스 시작시 호출 public void connect(){ ..
카테고리 없음
2021. 7. 30. 21:07