maven学习记录2.4:spring.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-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
">
 <!-- 引入属性文件 -->
 <context:property-placeholder location="classpath:config.properties" />
 <!-- 自动扫描(自动注入) -->
 <context:component-scan base-package="sy.service" />

</beans>

你可能感兴趣的:(maven学习记录2.4:spring.xml配置)