摘要:
环境:在用Hibernate连接Oracle数据库进行数据存储的时候运行时报错Exception in thread "main" java.lang.ClassCastException: org.hibernate.transaction.JDBCTransaction cannot be cast to javax.transaction.Transactionat dao.LoginDao.save(LoginDao.java:20)这部分的具体地方为Transaction tr =(Transaction) session.beginTransaction();a 阅读全文