-
Notifications
You must be signed in to change notification settings - Fork 140
/
applicationContext.xml
24 lines (19 loc) · 1.24 KB
/
applicationContext.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!-- Enable component scanning i.e. load anything with Spring annotations such as @Component -->
<context:component-scan base-package="org.automon.spring_aop"/>
<!-- Enable AspectJ auto-proxying - Looks for any aspect annotated with @Aspect and loads it -->
<aop:aspectj-autoproxy/>
<!-- To use native AspectJ weaver with spring (would allow a wider range of pointcuts such as privates and other -->
<!-- than 'execution' the following can be used (you need to use a java agent for this approach to work. -->
<!-- <context:load-time-weaver aspectj-weaving="on"/>-->
</beans>