This example shows the way to set the null value in the Spring configuration file.
<bean class="SampleBean">
<property name="name"><value></value></property>
</bean>
Results in the name property being set to "", equivalent to the java code: sampleBean.setName("").
The special <null> element may be used to indicate a null value, so that:
<bean class="ExampleBean">
<property name="email"><null/></property>
</bean>
The above configuration is equivalent to the java code:
exampleBean.setEmail(null).