Spring / Spring Interview questions II
How do we inject a null or empty Value in Spring framework?
In Spring, the null and empty value can be injected while creating bean and assigning dependency as described below.
Null value is injected using
<property name="firstName"><null/></property>
and an empty value can be injected as shown below.
<property name="middleInit" value=""/>
More Related questions...