首页 > 代码库 > 多个切面表达式
多个切面表达式
<?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>
多个切面表达式
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。