javaee1/spring/target/classes/app.xml

15 lines
741 B
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<context:component-scan base-package="com.spring"/>
<!--
<bean id="userDao" class="com.spring.UserDao"/>
前面的userdao实例化的对象成员变量后面的spring容器里实例化对象的名字
<bean id="userService" class="com.spring.UserService">
<property name="userDao" ref="userDao"/>
</bean>
<bean id="dbTools" class="com.spring.DBTools"/>
-->
</beans>