View RSS Feed

Spring Framework

SpringSource Spring Framework tutorials and examples. Focusing on Spring 3 and above.

  1. Spring Configuration Based on Annotation

    by , 07-07-2012 at 07:25 PM
    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 ...