(* com.evan.crm.service.*.*(..))中几个通配符的含义:
|第一个 * —— 通配 随便率性返回值类型|
|第二个 * —— 通配包com.evan.crm.service下的随便率性class|
|第三个 * —— 通配包com.evan.crm.service下的随便率性class的随便率性办法|
|第四个 .. —— 通配 办法可以有0个或多个参数|
<!-- 配置那些类的方法进行事务管理 -->
<aop:config>
<aop:pointcut id="allServiceMethod" expression="execution (* com.cms.sys.service.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="allServiceMethod" />
</aop:config>
还有一个
execution (* com.cms.art.service.*.*(..))"
要怎么写?
可以这样写:将execution分开写。
<aop:config>
<aop:pointcut id="allServiceMethod" expression="(execution (* com.cms.sys.service.*.*(..)))or (execution (* com.cms.art.service.*.*(..)))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="allServiceMethod" />
</aop:config>
原文地址:http://hi.baidu.com/suofang/item/1bea72b7315c3497194697ea
相关推荐
<aop:pointcut expression="execution(* com.spring.service..*(..))" id="pointCut"/>声明一个切入点,注意execution表达式的写法 <aop:before method="before" pointcut-ref="pointCut"/> aop前置通知 ...
expression="execution(* x.y.service.*Service.*(..))" /> id="noTxServiceOperation" expression="execution(* x.y.service.ddl.DefaultDdlManager.*(..))" /> pointcut-ref="defaultServiceOperation" ...
<!--配置连接池--> ... <property name="url" value="jdbc:mysql:///... <aop:pointcut id="pointcut" expression="execution(* com.itheima.service.impl.*.*(..))"/> <aop:advisor advice-ref="advice" pointcut-ref=
<aop:pointcut expression="execution(* com.direct.service.*.*(..))" id="transactionPointCut"/> <aop:advisor advice-ref="transactionAdvice" pointcut-ref="transactionPointCut"/> spring和struts2的整合 ...
<aop:pointcut expression="execution(* com.org.service.*.*(..))" id="bussinessService" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="bussinessService"/> <!-- 配置那个类那个方法用到事务...
<aop:pointcut expression="execution(public * com.org.service.*.*(..))" id="bussinessService" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="bussinessService" /> <!-- 配置那个类那个方法...
<property name="mapperLocations" value="classpath:mapping/*.xml"> <!-- DAO接口所在包名,Spring会自动查找其下的类 --> <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> ...
<aop:pointcut id="allServiceMethod" expression="execution(* com.cstp.service.*.*(..))"/> <aop:advisor pointcut-ref="allServiceMethod" advice-ref="txAdvice"/> <!-- 新闻类型 --> <bean id=...
<aop:pointcut expression="execution(public * com.org.core.service.*.*(..))" id="bussinessService" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="bussinessService" /> <!-- 配置那个类...
-- <aop:pointcut id="myPointcut" expression="execution(public * com.sbz.*.service.*.*(..))"/>--> <!-- <aop:advisor advice-ref="myAdvice" pointcut-ref="myPointcut"/>--> <!-- </aop:config>--> <!--AOP...
1)GETTING STARTED WITH VISUAL BASIC .NET An Introduction to Visual Basic .NET ................................................................................2 Install Visual Studio .NET.................
Sun 官方 J2ee 5.0 教程 The Java EE 5Tutorial For Sun Java System Application Server 9.1 Contents Preface ..................................................................................................
5.9. ManagementService管理服务 5.10. 查询 API 6. jPDL 6.1. process流程处理 6.2. 控制流程Activities活动 6.2.1. start启动 6.2.2. State状态节点 6.2.2.1. 序列状态节点 6.2.2.2. 可选择的状态节点 6.2.3. ...
5.9. ManagementService管理服务 5.10. 查询 API 6. jPDL 6.1. process流程处理 6.2. 控制流程Activities活动 6.2.1. start启动 6.2.2. State状态节点 6.2.2.1. 序列状态节点 6.2.2.2. 可选择的状态节点 ...
集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...
javax.el Provides the API for the Unified Expression Language shared by the JSP 2.1 and JSF 1.2 technologies. javax.enterprise.deploy.model Provides Tool Vendor implementation classes. javax....
Visual query creation with diagram and expression editor. Queries of any complexity can be created in several seconds. The GUI tool automatically adds joinsbetween tables and allows working with ...