spring整合hibernate报错:Could not obtain transaction-synchronized Session for current thread

来源:互联网 发布:大圣科技知乎 编辑:程序博客网 时间:2024/06/15 01:07

spring事务报错。处理思路如下:

1.service里面方法名对不对

2.有没有扫描错包 

3.加入<aop:aspectj-autoproxy/> 

上次错误出现在2,直接复制的其他工程配置文件而没有修改其中包名,导致错误。

0 0