|
|
<?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:p="http://www.springframework.org/schema/p"
|
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
|
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
xmlns:task="http://www.springframework.org/schema/task"
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
|
|
http://www.springframework.org/schema/context
|
|
|
http://www.springframework.org/schema/context/spring-context-3.1.xsd
|
|
|
http://www.springframework.org/schema/aop
|
|
|
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
|
|
|
http://www.springframework.org/schema/mvc
|
|
|
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
|
|
|
http://www.springframework.org/schema/task
|
|
|
http://www.springframework.org/schema/task/spring-task.xsd">
|
|
|
|
|
|
<!-- Spring扫描目录,通过注解的方式注入bean,只扫描本工程的目录 -->
|
|
|
<context:component-scan base-package="com.yoho.*" />
|
|
|
<task:annotation-driven/>
|
|
|
<!-- 打开aop 注解 -->
|
|
|
<aop:aspectj-autoproxy proxy-target-class="true"/>
|
|
|
</beans> |
|
|
\ No newline at end of file |
...
|
...
|
|