What Mark said will fix it.
Here is the reason behind it. Below is from
Spring Framework 3.0.7 Reference.
Table 3.2. Autowiring modes
.
.
.
Mode: byName
.
.
Autowiring by property name. Spring looks for a bean with the same name as the property that needs to be autowired. For example, if a bean definition is set to autowire by name, and it contains a master property (that is, it has a setMaster(..) method), Spring looks for a bean definition named master, and uses it to set the property.
- k
---------------------------------------------------------------------------------------------------------
[
SpringSource Certified Spring Professional - Practice Tests]