SSAFY11th-book-study / book-study

0 stars 0 forks source link

[6.5] @Transactional #66

Open limjongheok opened 4 months ago

limjongheok commented 4 months ago

이번 수업중 @Transactional 이 나와서 질문을 올려 봅니다. @Transactional 을 적용시 책에서 나온것 처럼 자동 프록시 생성기, 어드바이스, 포인트컷, 어드 바이저 와 같은 클래스를 빈 등록을 일일이 안해도 spring 에서 service 에 트랜잭션을 적용을 시켜 주어 트랜잭션을 사용할 수 있는데 이 어노테이션은 어떤 방식으로 aop 를 적용 시킬까요?? 저도 찾아보고 답글 남기겠습니다.

gmelon commented 3 months ago

정확하게는 모르겠지만 대강 자동 설정 흐름이 아래와 같은 느낌인 것 같습니다. 찾아볼 때 참고가 될 것 같아서 우선 올려둡니당

1. TransactionProxyFactoryBean

image

2. TransactionAttributeSourceAdvisor

image

3. TransactionAspectSupport

image

TransactionAttributeSource의 구현체들

image

4. AnnotationTransactionAttributeSource(implements TransactionAttributeSource)

image

limjongheok commented 3 months ago

https://moonong.tistory.com/98 정리가 잘 된 블로그가 있어 올립니다