首页 > 编程语言> > Spring中使用事务出现java.lang.ClassCastException com.sun.proxy.$Proxy19 cannot be cast to ...错误
Spring中使用事务出现java.lang.ClassCastException com.sun.proxy.$Proxy19 cannot be cast to ...错误
作者:互联网
Spring中使用事务出现java.lang.ClassCastException: com.sun.proxy.$Proxy19 cannot be cast to …错误
<!--开启事务注解驱动,并配置事务-->
<tx:annotation-driven transaction-manager="事务管理器id" proxy-target-class="true"/>
proxy-target-class="true" 添加即可
标签:lang,...,java,Spring,cast,ClassCastException,proxy 来源: https://blog.csdn.net/qq_48967079/article/details/113525976