spring_spring模式指定

来源:互联网 发布:js根据逗号截取字符串 编辑:程序博客网 时间:2024/06/05 15:33
<?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"><bean name="userDaoImpl" class="com.bjsxd.dao.impl.UserDaoImpl"/><!-- <bean id="userService" class="com.bjsxd.service.UserService"> <property name="userDao" ref="userDaoImpl" /> </bean> --><bean id="userService" class="com.bjsxd.service.UserService" scope="singleton"><constructor-arg><ref bean="userDaoImpl"/></constructor-arg></bean></beans>