AOP problem running Spring unit tests

后端 未结 3 529
遇见更好的自我
遇见更好的自我 2021-02-08 15:20

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:04

    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.

提交回复
热议问题