ssh整合 出现Could not obtain transaction-synchronized Session for current thread
来源:互联网 发布:mac玩qq堂 编辑:程序博客网 时间:2024/06/05 09:57
在ssh整合时出现 错误
Could not obtain transaction-synchronized Session for current thread
在hibernate3时用的是
解决办法:
在 获取session时改为
Session session;try { session = sessionFactory.getCurrentSession();} catch (HibernateException e) { session = sessionFactory.openSession();}return session;
如果有错误,请指出谢谢
阅读全文
0 0
- SSH整合时出现Could not obtain transaction-synchronized Session for current thread
- ssh整合 出现Could not obtain transaction-synchronized Session for current thread
- 【Hibernate】Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- HibernateException: Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- Could not obtain transaction-synchronized Session for current thread
- 抽象类
- Android MVP(Model View Presenter)
- Java1.8源码阅读-DualPivotQuicksort
- delphi 身份证号码相关处理单元
- 四叉树-2D平面的渲染剔除、碰撞次数优化
- ssh整合 出现Could not obtain transaction-synchronized Session for current thread
- Java高级之异常
- form表单验证input标签内容
- CodeForces
- 环信JAVA服务端调用各接口完整实例
- Material Design之ToolBar
- 单链表
- java模拟http请求调用远程接口工具类
- 常见管理法则