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
- AOP
- JPQL
- pointcut
- Android
- Spring Boot
- 그리디
- Exception
- kotlin
- java
- 스프링 핵심 원리
- 인프런
- 스프링
- SpringBoot
- transaction
- JDBC
- Thymeleaf
- 김영한
- jpa
- Servlet
- http
- db
- Greedy
- 백준
- springdatajpa
- Proxy
- 자바
- 알고리즘
- QueryDSL
- spring
- 스프링 핵심 기능
Archives
- Today
- Total
목록바이트코드 조작 (1)
개발자되기 프로젝트
@Configuration, 싱글톤, 바이트코드 조작
1. AppConfig에서 method호출할 때 마다 인스턴스가 생성? 기존에 작성한 AppConfig를 보면 memberRepository를 두 번 호출한다. 그러면 MemoryMemberRepository가 두 번 생성되나???? 엥? 싱글톤인데??? 깨지나??? 스프링 컨테이너는 싱글톤 보장해준다고 했는데..? 2. 그러면 두 클래스에 들어가는 memberRepository가 같은지 보자. public class ConfigurationSingletonTest { @Test void configurationTest(){ AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class); Memb..
인프런/[인프런] Spring 핵심원리 이해
2021. 7. 28. 00:29