In his article, we will have detailed look into the Spring bean XML file, bean Tag and Property Tag.
<?xml version="1.0" encoding="UTF-8"?>
schemLocation says where to found that XSD on Internet,
<bean id="helloWorld" class="com.example.hello.HelloWorld">
Bean tag has two important attributes, id and class. The Id is the identifier of the bean, you can think it as the primary key of a table, or SSN of an American citizen. Class attribute provides fully qualified class name. Internally, Spring container load this bean using java reflection. Make sure that you provide an exact class name and unique id for a bean.
<property name="greet" value="Hello World! Welcome to Spring"/>
In each bean tag we define properties which are same as java attributes. If an Employee class have two properties say the name, address so we have to define two property tags under Employee bean and name of the property should match with java property. In Java bean, please provide a setter for that property since Spring injects value attribute using that setter.