AOP problem running Spring unit tests

后端 未结 3 1541
南笙
南笙 2021-02-08 15:26

I have a Spring web application which is configured to use JDK proxying for AOP. The AOP annotations (such as @Transactional) are declared on the interfaces, rather than the imp

3条回答
  •  梦如初夏
    2021-02-08 16:00

    Sounds like you're referencing an implementation class instead of an interface. There is an excerpt here with more detail.

    A Spring forum post: "Mixing JDK and CGLIB proxies"

    A great blog post explaining pros and cons of JDK vs. CGLIB proxies.

提交回复
热议问题