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

来源:互联网 发布:手机淘宝退货流程图 编辑:程序博客网 时间:2024/05/22 03:44

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>  
阅读全文
0 0
原创粉丝点击