spring aop添加多個包,用||或者or隔開
<!-- 只對業務邏輯層實施事務 -->
<aop:config expose-proxy="true">
<aop:pointcut expression="execution(* demo.ssh.daoImpl.*.*(..)) || execution(* demo.mes.daoImpl.*.*(..))"
id="txPointcut" />
<!-- Advisor定義,切入點和通知分別爲txPointcut、txAdvice -->
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut" />
</aop:config>