diff options
Diffstat (limited to 'spring-framework/23-aop-aspectj-annotations/src/main/resources/META-INF/spring/applicationContext.xml')
| -rw-r--r-- | spring-framework/23-aop-aspectj-annotations/src/main/resources/META-INF/spring/applicationContext.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spring-framework/23-aop-aspectj-annotations/src/main/resources/META-INF/spring/applicationContext.xml b/spring-framework/23-aop-aspectj-annotations/src/main/resources/META-INF/spring/applicationContext.xml new file mode 100644 index 0000000..5eaa647 --- /dev/null +++ b/spring-framework/23-aop-aspectj-annotations/src/main/resources/META-INF/spring/applicationContext.xml @@ -0,0 +1,20 @@ +<?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"> + + <!-- Enabled annotation based AOP --> + <aop:aspectj-autoproxy/> + + <!-- Aspect classes should be defined as beans --> + <bean id="accessChecker" class="com.example.spring.aop.security.AccessChecker" /> + + <bean id="account" class="com.example.spring.aop.Account"> + <property name="accNo" value="1000"></property> + <property name="balance" value="250.00"></property> + </bean> + +</beans>
\ No newline at end of file |
