
환경Spring framework 6.2.6AOP 의 동작@Transactional annotation은 어떻게 동작하는걸까? @Transactional 를 사용하면 AOP 를 이용해서 실제 메서드가 실행되기 전과 후에 트랜잭션 관련 행위를 수행한다. 이러한 행위는 TransactionInterceptor 에 의해서 수행된다. TransactionInterceptor 는 공식문서에서 선언적 트랜잭션 관리를 위한 AOP Alliance MethodInterceptor 라고 정의되어 있다. 즉, 메서드 호출을 가로채서 트랜잭션에 대한 부가적인 처리를 한다고 볼 수 있다.TransactionInterceptor 는 메서드의 호출을 가로챈다. 그리고 내부적으로 TransactionAspectSupport 의in..