1 changed files with 86 additions and 0 deletions
@ -0,0 +1,86 @@
@@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop https://www.springframework.org/schema/aop/spring-aop.xsd"> |
||||
|
||||
<!-- 定义数据源--> |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<bean id="userDao" class="org.school.Dao.UDaoImple"/> |
||||
<bean id="xmlAdvice" class="org.school.Proxy.XmlAdvice"/> |
||||
|
||||
<aop:config> |
||||
<!-- 定义切入点 --> |
||||
<aop:pointcut id="pointcut" expression="execution(* |
||||
org.school.Dao.UDaoImple.*(..))" /> |
||||
<!-- 这里是切入点--> |
||||
<aop:aspect ref="xmlAdvice"> |
||||
<!-- 这里的是通知类型--> |
||||
<aop:before method="before" pointcut-ref="pointcut"/> |
||||
<!-- 指定返回通知类型--> |
||||
<aop:after-returning method="afterReturning" pointcut-ref="pointcut"/> |
||||
|
||||
<!-- 环绕通知--> |
||||
<aop:around method="around" pointcut-ref="pointcut"/> |
||||
|
||||
<!-- 异常通知--> |
||||
<aop:after-throwing method="afterException" pointcut-ref="pointcut"/> |
||||
|
||||
<!-- 后置通知--> |
||||
<aop:after method="after" pointcut-ref="pointcut"/> |
||||
</aop:aspect> |
||||
</aop:config> |
||||
</beans> |
||||
Loading…
Reference in new issue