Spring @Transactional is applied both as a dynamic Jdk proxy and an aspectj aspect

后端 未结 2 1225
日久生厌
日久生厌 2021-01-12 19:26

I am in the process of adding Spring declarative transactions via the @Transactional annotation to an existing Java project.

When I ran into a problem (unrelated to

2条回答
  •  孤独总比滥情好
    2021-01-12 20:03

    Strange, it sounds like you have this configuration:

    
    

    (Transaction support using AspectJ, not JDK proxies)

    Since your config doesn't have a mode attribute, the default should kick in (proxy mode). But AnnotationTransactionAspect is the exact aspect used by the aspectj mode.

提交回复
热议问题