- 스프링 4.3 이후 부터 self-autowiring 지원하므로 self-autowiring 이용하여 해결..
- 글 뒷부분에 보면 "같은 클래스 내의 메소드 호출(self invocation)시 REQUIRES_NEW 작동 안하는 문제"에 대한 글
https://tram-devlog.tistory.com/entry/Spring-AOP-weaving-proxy
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
- spring AOP AspectJ 설정 (LTW - Load-Time Weaving)https://howtodoinjava.com/spring-transaction/spring-transactions-on-non-public-methods-with-load-time-weaving/
- AspectJ를 이용해서 해결(?)
- AspectJ를 이용해서 해결해야 하나 의문
http://wonwoo.ml/index.php/post/851
'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 |