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

相关文章:

  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-03-04
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2021-12-04
  • 2021-04-27
  • 2022-03-10
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案