no currentsessioncontext configured!

  使用Hibernate框架时候报错:no currentsessioncontext configured!数据库   这个错误是当咱们使用getCurrentSession();时候引发的,缘由是currentSession配置错误,与事务有关,当咱们使用currentSession的时候须要在hibernate.cfg.xml中进行以下事务配置:服务器   一、若是是本地事务:网络    
相关文章
相关标签/搜索