forked from coderbruis/JavaSourceCodeLearning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaspectTest.xml
More file actions
11 lines (10 loc) · 897 Bytes
/
aspectTest.xml
File metadata and controls
11 lines (10 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
<?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"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd">
<!-- 开启aop自动代理,是啥意思呢? -->
<aop:aspectj-autoproxy proxy-target-class="false" expose-proxy="true" />
<bean id="test" class="com.bruis.learnaop.model.TestBean"/>
<bean class="com.bruis.learnaop.testaspectJ.AspectJTest" />
</beans>