mirror of
https://github.com/Estom/notes.git
synced 2026-07-04 04:26:12 +08:00
18 lines
965 B
XML
18 lines
965 B
XML
<?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:context="http://www.springframework.org/schema/context"
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
|
|
|
|
<!--开启组件扫描
|
|
1. 如果扫描多个包,多个包之间使用逗号隔开
|
|
2. 扫描包的上层目录-->
|
|
<context:component-scan base-package="com.ykl"></context:component-scan>
|
|
<!--开启aspectJ生成代理对象-->
|
|
<aop:aspectj-autoproxy></aop:aspectj-autoproxy>
|
|
</beans>
|
|
|