您的位置:首页 > 其它

[hibernate]Turn your Session into FlushMode.COMMIT/AUTO,请教这种配置怎么处理

2017-08-03 22:00 381 查看
1.可能是你的切面没有切到指定包下面的事务方法

<aop:config>
<!--
以Service结尾的bean
expression="bean(*Service)" -->
<aop:pointcut expression="**execution(* com.sjq.*.*.service.*.*(..))**" id="txPointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut"/>
</aop:config>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  hibernate
相关文章推荐