spring proxy-target-class

Posted jtlgb

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring proxy-target-class相关的知识,希望对你有一定的参考价值。

<tx:annotation-driven transaction-manager="transactionManager" 
                                       proxy-target-class="true"/>
  注意:proxy-target-class属性值决定是基于接口的还是基于类的代理被创建。如果proxy-target-class 属性值被设置为true,那么基于类的代理将起作用(这时需要cglib库)。如果proxy-target-class属值被设置为false或者这个属性被省略,那么标准的JDK 基于接口的代理将起作用。

以上是关于spring proxy-target-class的主要内容,如果未能解决你的问题,请参考以下文章