QQ77360963 2016-03-05 13:40 采纳率: 0%
浏览 2666

Spring AOP记录日志与事物回滚冲突

    <tx:annotation-driven transaction-manager="transactionManager" order="1"/>

    <aop:config>  
        <aop:aspect id="sysMonitor" ref="aspectBean" order="2">   
            <aop:pointcut id="exceptionPointcut"  
                expression="execution(* com.test.*.*.*.*(..))" />  
            <aop:after-throwing pointcut-ref="exceptionPointcut" method="interceptException" throwing="ex"/>  
        </aop:aspect>  
    </aop:config> 

    <bean id="aspectBean" class="com.test.common.util.SpringBeanAspect" /> 

PS:
1:去掉AOP后事物就起作用
2:调整了order也不起作用

  • 写回答

1条回答 默认 最新

  • devmiao 2016-03-05 15:50
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办