码迷,mamicode.com
首页 > 其他好文 > 详细

多个切面表达式

时间:2017-05-11 19:39:58      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:ram   eth   color   div   2.x   poi   1.0   context   drive   

<?xml version="1.0" encoding="utf-8"?>
<beans default-init-method="init" default-destroy-method="destroy"
    xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:task="http://www.springframework.org/schema/task"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mongo="http://www.springframework.org/schema/data/mongo"
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
                           http://www.springframework.org/schema/beans/spring-beans.xsd 
                           http://www.springframework.org/schema/context 
                           http://www.springframework.org/schema/context/spring-context.xsd
                           http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd
                           http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd 
                           http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
                        http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd">
       
    <aop:config>
          <aop:aspect ref="dynamicDataSourceAspect">
             <aop:pointcut id="backMethod"   
                expression="execution(public * com.yundaex..CompleteInboundNoticeBackToQimenDaoImpl.query*(..))
                 || execution(public * com.yundaex.wms..InventoryCountReportToQimenDaoImpl.query*(..))
                  || execution(public * com.yundaex.wms..OrderProcessReportToQimenDaoImpl.query*(..))
                  || execution(public * com.yundaex.wms..OutboundNoticeConfirmBackToQimenDaoImpl.query*(..))
                   || execution(public * com.yundaex.wms..ReturnOrderBackToQimenDaoImpl.query*(..))
                    || execution(public * com.yundaex.wms..StockChangeReportToQimenDaoImpl.query*(..)) "/>  
             <aop:around method="aroundMethod"  pointcut-ref="backMethod"/>
          </aop:aspect>
    </aop:config>
          
    <mvc:annotation-driven/>     
    <task:annotation-driven/>  
    <context:component-scan base-package="com.yundaex.wms" />
    
</beans>

 

多个切面表达式

标签:ram   eth   color   div   2.x   poi   1.0   context   drive   

原文地址:http://www.cnblogs.com/tonggc1668/p/6842097.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!