声明式事务,多个execution连接方法:
expression="execution(* pp.business.*.*(..)) or execution(* pp.business.impl.*.*(..))"
用的是or而不是and。我不太明白and是什么意思,但测试中,用and时方法执行没有加入事务。
spring的帮助手册里有关于execution的连接方式的一句话:
Pointcut expressions can be combined using '&&', '||' and '!'.
但是我写上&&就会报错。很郁闷。。。
||和or的作用相同:在符合* pp.business.*.*(..)和* pp.business.impl.*.*(..)方法上都加上事务性。
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes >
<tx:method name="add*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="insert*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>
<aop:config proxy-target-class="true">
<aop:pointcut id="allManagerMethod" expression="execution(* pp.business.*.*(..)) or execution(* pp.business.impl.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>
分享到:
相关推荐
Manufacturing Execution Systems – MES Dr.-Ing. Jürgen Kletti Springer Berlin Heidelberg PDF 英文版。解释、建构 MES,最后其中一章谈到与SAP 集成,和塑料加工行业MES 应用。 专门谈 MES 的书其实不多,这本...
Asynchronous Query Execution异步查询
行业知名测试平台Execution,支持ECN加密脚本、JS脚本。多用于运营商脚本级测试。使用WINRAR 5.50以上版本解压缩。
《Manufacturing Execution Systems-MES》Dr.-Ing.Jürgen Kletti(Ed.) 介绍了MES(制造执行系统)的发展、标准,正确建立一个MES的方法以及一些不同领域企业的应用实例。
New York State PMH,Section I_Project Management Lifecycle——Project Execution and Control
用以解决androidatudio虚拟机因未装haxm而无法运行的情况: 将intelhaxm-android文件放入..sdk\extras\intel\Hardware_Accelerated_Execution_Manager文件下,然后手动运行intelhaxm-android文件。
software test automation effective use of test execution 自动化测试
SELECT--A FORMAL SYSTEM FOR "ESTING AND DEBUGGING PROGRAMS BY SYMBOLIC EXECUTION
possible misspecification in terms of execution classes and weld quality levels in particular. If realized, these concerns about the range and the basis of some of the choices could lead either to ...
title: web service business process execution language OASIS standard
在使用spring框架配置AOP的时候,不管是通过XML配置文件还是注解的方式都需要定义pointcut"切入点
C code for Symstra framework , symbolic execution in java
SSIS Package Execution Methods
Vectorization vs. Compilation in Query Execution.pdf
创建索引 显示执行计划 oracle-Execution_plan脚本运行配置-010.doc
GE Proficy Batch Execution 批处理控制系统在龙岩卷烟厂香料中心的应用pdf,GE Proficy Batch Execution 批处理控制系统在龙岩卷烟厂香料中心的应用
sap press doc 解压密码:abap_developer
android模拟器硬件加速
MES珍藏宝典:Manufacturing Execution Systems (MES),MES大师级人物Heiko Meyer撰写 Manufacturing Execution Systems (MES) 作者: Heiko Meyer / Franz Fuchs / Klaus Thiel 副标题: Optimal Design, Planning...