Spring-Hibernate - No Session found for current thread
来源:互联网 发布:matlab处理大量数据 编辑:程序博客网 时间:2024/04/30 02:54
In your SpringBean.xml you should uncomment <tx:annotation-driven/>
:
<tx:annotation-driven transaction-manager="transactionManager"/>
And then you should annotate the CustomerServiceImpl.saveCustomer
method as @Transactional
:
@Servicepublic class CustomerServiceImpl implements CustomerService { ... @Override @Transactional public void saveCustomer(Customer customer) { customerDaoImpl.saveCustomer(customer); } ...}
0 0
- Spring-Hibernate - No Session found for current thread
- Spring整合hibernate No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- hibernate异常no session found for current thread
- org.hibernate.HibernateException: No Session found for current thread
- Hibernate No Session found for current thread异常分析
- 关于在Spring中Hibernate的No Session found for current thread问题
- spring+hibernate4 报错No Session found for current thread
- No Session found for current thread
- No Session found for current thread
- Just for Today
- 生成iphone所需m3u8 和ts 文件方案
- MySQL Workbench 创建模型图
- ActionScript 实现放大图片功能
- VMware DHCP Service 服务无法启动
- Spring-Hibernate - No Session found for current thread
- Ubuntu Vmware使用 nat 设置网络【实践版,有图】
- ubuntu系统中文
- ubuntu 安装ftp服务
- ubuntu 安装ssh服务
- [LeetCode] Remove Element
- Ubuntu 打包解压使用,tar.gz
- Presenting view controllers on detached view controllers is discouraged
- ubuntu安装jdk,ubuntu设置java环境变量