-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00b8f6c
commit e998146
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
''' | ||
<?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 autowire="byName" class="di.constructorInjection.User" id="user"> | ||
<constructor-arg value="Buddha"/> | ||
<constructor-arg value="30"/> | ||
<constructor-arg value="Nepal"/> | ||
<constructor-arg> | ||
<list> | ||
<value>Kathmandu</value> | ||
<value>Dhangadi</value> | ||
<value>Mahendranagar</value> | ||
</list> | ||
</constructor-arg> | ||
</bean> | ||
|
||
|
||
<bean class="di.setterInjection.Address" id="address"> | ||
<property name="city" value="KTM"/> | ||
<property name="state" value="STATE"/> | ||
<property name="zip" value="0977"/> | ||
<property name="country" value="NEPAL"/> | ||
</bean> | ||
|
||
<bean class="di.setterInjection.UserDto" id="userSetterInjection"> | ||
<property value="Buddha(Gautam)" name="name"/> | ||
<property value="30" name="age"/> | ||
<property name="address" ref="address"/> | ||
</bean> | ||
|
||
</beans> | ||
|
||
|
||
''' |