mirror of https://github.com/qiurunze123/miaosha
22 lines
1.3 KiB
XML
22 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:util="http://www.springframework.org/schema/util"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
|
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
|
|
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd">
|
|
|
|
<!-- 扫描包加载Service实现类 -->
|
|
<context:component-scan base-package="com.geekq.web.service"></context:component-scan>
|
|
|
|
<!-- 自动创建代理 对@AspectJ注解的支持 -->
|
|
<!-- 通知spring使用cglib而不是jdk的来生成代理方法 AOP可以拦截到Service -->
|
|
<aop:aspectj-autoproxy proxy-target-class="true"></aop:aspectj-autoproxy>
|
|
|
|
</beans>
|