本文主要是介绍org.hibernate.transaction.JDBCTransaction cannot be cast to javax.transaction.Transaction,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
org.hibernate.transaction.JDBCTransaction cannot be cast to javax.transaction.Transaction
这部分的具体地方为Transaction tr =(Transaction) session.beginTransaction();
错误原因:包倒错了,应该导入的包是hibernate的Transaction包
这篇关于org.hibernate.transaction.JDBCTransaction cannot be cast to javax.transaction.Transaction的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!