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
- pointcut
- Servlet
- kotlin
- Greedy
- AOP
- jpa
- JDBC
- 자바
- Spring Boot
- SpringBoot
- 인프런
- http
- spring
- Thymeleaf
- 백준
- 스프링 핵심 원리
- springdatajpa
- 스프링
- 김영한
- java
- Proxy
- Exception
- QueryDSL
- transaction
- 알고리즘
- Android
- 스프링 핵심 기능
- JPQL
- db
- 그리디
Archives
- Today
- Total
목록@PreDestroy (1)
개발자되기 프로젝트
@PostConstruct, @PreDestroy
1. 빈 생성, 의존성 주입 후 실행할 method 지정 : @PostConstruct @PostConstruct public void init() { System.out.println("NetworkClient.init"); connect(); call("초기화 연결 메세지"); } 2. 빈 소면 전에 실행할 method 지정 : @PreDestroy @PreDestroy public void close() { System.out.println("NetworkClient.close"); disconnect(); } 3. Test public class BeanLifeCycleTest { @Test public void lifeCycleTest(){ AnnotationConfigApplicationCon..
인프런/[인프런] Spring 핵심원리 이해
2021. 7. 30. 21:46