autowire-constructor-with-exclusion.xml 707 字节
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

C
Chris Beams 已提交
6
	<bean id="rob" class="test.beans.TestBean" scope="prototype" autowire="constructor"/>
7

C
Chris Beams 已提交
8
	<bean id="sally" class="test.beans.TestBean" scope="prototype"/>
9 10 11 12 13 14 15 16 17 18 19 20 21 22

	<bean id="props1" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
	  <property name="properties">
			<value>name=props1</value>
	  </property>
	</bean>

	<bean id="props2" class="org.springframework.beans.factory.config.PropertiesFactoryBean" autowire-candidate="false">
	  <property name="properties">
			<value>name=props2</value>
	  </property>
	</bean>

</beans>