我用
<tx:annotation-driven transaction-manager="transactionManager" />
<jpa:repositories base-package="com.xxwell.amkey.domain"
transaction-manager-ref="transactionManager" />
它就像一个魅力。但是,要向项目添加方面,我需要 CGLIB。将上述行更改为
<tx:annotation-driven transaction-manager="transactionManager"
proxy-target-class="true" />
<jpa:repositories base-package="com.xxwell.amkey.domain"
transaction-manager-ref="transactionManager" />
导致启动上下文失败:Cannot subclass final class class $Proxy45
对于我定义的每个存储库。是不能一起用,还是可以做?