Exception in thread "main" java.lang.ClassCastException: $Proxy13
原因:业务层实现了接口

解决:方法一:切面配置事务的地方修改:<aop:config proxy-target-class="true">(加上黑体字)

   方法二:加<property name="proxyTargetClass"></property>  没试过

   方法三:强制转化成接口

相关文章:

  • 2021-11-29
  • 2021-09-09
  • 2021-10-14
  • 2021-11-08
  • 2021-09-11
  • 2021-10-10
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-04-25
  • 2021-11-22
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案