java-tutorials/spring-all/src/main/resources/beanInjection-constructor.xml
Muhammet Oğuz ÖZCAN 325466a782 Master (#1250)
* Bean Injection Project is added

Different Types of Bean Injection article codes are added.

* Java-based configuration added

Java-based configuration and tests are added. Coding styles are fixed.

* List of Lists Article Codes added.

List of Lists Article Codes added.
2017-02-26 18:53:32 +01:00

15 lines
498 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"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="ship" class="org.baeldung.bean.injection.Ship">
<constructor-arg>
<ref bean="helm" />
</constructor-arg>
</bean>
<bean id="helm" class="org.baeldung.bean.injection.Helm" />
</beans>