java.lang.ClassCastException: com.sun.proxy.$Proxy0 cannot be cast to org.andrea.myexample.myDeclarativeTransactionSpring.StudentJDBCTemplate

后端 未结 4 1705
[愿得一人]
[愿得一人] 2021-02-10 01:49

I am trying to implement this tutorial about Declarative Transaction in Spring Framework application but don\'t work because when I try to execute the MainApp c

4条回答
  •  忘掉有多难
    2021-02-10 02:25

    I was able to execute without changing the , just by getting bean instance from the StudentDAO interface.

    
          
          
    
    
     StudentDAO studentJDBCTemplate = (StudentDAO)context.getBean("studentJDBCTemplate");
    

提交回复
热议问题