Could not obtain transaction-synchronized Session for current thread
2016-05-13 16:59
369 查看
**问题描述:
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:134)
at
“`
解决方案:
hibernate4不支持你用hibernate3的 getcurrentSession,建议你用openSession
`**
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
at org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:134)
at
“`
解决方案:
hibernate4不支持你用hibernate3的 getcurrentSession,建议你用openSession
相关文章推荐
- POJ 1363 Rails
- 人工智能
- myBaits 插入多条数据 foreach 查询数据
- main()函数的参数
- Async Programming - 1 async-await 糖的本质(2)
- 清除陷入CLOSE_WAIT的进程
- kairosdb中的配置说明
- 使用 xCAT 简化 AIX 集群的部署和管理
- svn提交报错:svn: Aborting commit:XXXXXremains in conflict
- hdu 1983 Kaitou Kid - The Phantom Thief (2)【Bfs+暴力枚举】
- HDU_1789_doing homework again_贪心
- 安装cassandra作为kairosdb的数据存储
- 【POJ 2010 Moo University-Financial Aid】优先级队列
- matplotlib InstallationError: Command python setup.py egg_info failed with error code 1
- pair类型
- 人工智能过去60年沉浮史,未来60年将彻底改变人类
- int main(int argc,char* argv[])浅析
- 问题:connect() failed (111: Connection refused) while connecting to upstream
- kail2.0下hping3的安装和使用(二)
- 利用wait()和notify()实现生产者与消费者问题