- 스프링 4.3 이후 부터 self-autowiring 지원하므로 self-autowiring 이용하여 해결..

 

- 글 뒷부분에 보면 "같은 클래스 내의 메소드 호출(self invocation)시 REQUIRES_NEW 작동 안하는 문제"에 대한 글

https://tram-devlog.tistory.com/entry/Spring-AOP-weaving-proxy

Spring AOP weaving, proxy

관점지향 프로그래밍(Aspect Oriented Programming) OOP의 공통 기능(로깅, 트랜잭션, 접근 제어 등의 보안) 등에 대한 횡단 영역의 공통된 부분의 중복을 제거하고 모듈화 하는 프로그래밍의 방식 public Li

tram-devlog.tistory.com


Spring Boot디폴트로 CGLib Proxy를 생성

JDk Dynamic Proxy는 Java Reflection을 이용해 조금 속도가 느리다고 한다.

@EnableAspectjAutoProxt(proxyTargetClass = false) <= JDK Dynamic Proxy를 강제로 사용


- spring AOP AspectJ 설정 (CTW - Compile-Time Weaving)
http://dveamer.github.io/java/SpringAsyncAspectJ.html

Dveamer

현실에서 살고 있지만 이상에 대한 꿈을 버리지 못한 몽상가의 홈페이지 입니다. 개인적인 기록을 주 목적으로 하며 일상과 프로그래밍 관련 글을 포스팅합니다.

dveamer.github.io


- spring AOP AspectJ 설정 (LTW - Load-Time Weaving)
https://howtodoinjava.com/spring-transaction/spring-transactions-on-non-public-methods-with-load-time-weaving/

Spring transactions on non-public methods with load-time weaving

In this tutorial, we will learn to apply transactions in any spring application on non-public methods (by deault spring AOP can only advise public methods of beans declared in the IoC container). Using this technique, you can manage transactions for nonpub

howtodoinjava.com



- AspectJ를 이용해서 해결(?)

https://medium.com/chequer/spring-transactional-caching-%EA%B7%B8%EB%A6%AC%EA%B3%A0-aspectj-1%ED%8E%B8-transactional-17eca8c33bf

Spring @Transactional, @Caching 그리고 AspectJ — 1편 : @Transactional

“Spring @Transactional, @Caching 그리고 AspectJ — 1편 : @Transactional” is published by Brant Hwang in CHEQUER.

medium.com


https://netframework.tistory.com/m/entry/LTW-CTW%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-Transactional%EC%9D%98-%EC%82%AC%EC%9A%A9



- AspectJ를 이용해서 해결해야 하나 의문

http://wonwoo.ml/index.php/post/851

Spring Transactional aop ASPECTJ - 머루의개발블로그

요즘들어 Transactional 처리에 대해서 글을 많이 남기는 것 같다. 금일 포스팅은 Spring Transactional 처리를 Proxy가 아닌 Aspectj 로 설정한 트랜잭션을 알아보겠다. 계속 포스팅했던 @Transactional은 동일한

wonwoo.ml

 

'spring-aop' 카테고리의 다른 글

aop transaction 설정  (0) 2023.11.14
@transaction + custom AOP  (0) 2019.10.28
aop 예제 - pointcut parameter 정보 및 return type 정보  (0) 2018.03.25
aop 설정  (0) 2017.07.28
Posted by 張's blog
,