mirror of
https://github.com/Estom/notes.git
synced 2026-04-15 10:50:13 +08:00
15 lines
704 B
XML
15 lines
704 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"
|
|
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">
|
|
|
|
<!--开启组件扫描
|
|
1. 如果扫描多个包,多个包之间使用逗号隔开
|
|
2. 扫描包的上层目录-->
|
|
<context:component-scan base-package="com.ykl"></context:component-scan>
|
|
|
|
</beans>
|
|
|