Spring报错:com.sun.proxy.$Proxy11 cannot be cast to com.test.StudentJDBCTemplate
在使用Spring的AOP时,报错提示。
解决方案:在xml的配置文件的aop:config中添加一行“proxy-target-class=“true””
加入后,重新运行正常。
Spring报错:com.sun.proxy.$Proxy11 cannot be cast to com.test.StudentJDBCTemplate
在使用Spring的AOP时,报错提示。
解决方案:在xml的配置文件的aop:config中添加一行“proxy-target-class=“true””
加入后,重新运行正常。