The dependency injection can be configured using annotations in Spring 2.5 and above. The configuration of bean class can be done in class itself as compared to XML based bean wiring with the use of annotations on relevant method, class or field declaration.
The XML injection is performed after the annotation based injection so the XML injection will override the annotation injection.
The Spring container will not turn on the annotation wiring by default. So you will