New in 11: Spring 3.1 @Configuration based contexts support

Spring 3.1 significantly extends @Configuration based applications with a set of new annotations responsible for processing of Spring models

  • @ComponentScan configures component scanning directives for use with @Configuration classes. Provides support parallel with Spring XML’s <context:component-scan> element
  • @Import indicates one or more @Configuration classes to import. Provides functionality equivalent to the <import/> element in Spring XML.
  • @ImportResource indicates one or more resources containing bean definitions to import.
  • @PropertySource providing a convenient and declarative mechanism for adding a PropertySource to Spring Environment.
  • @Profile indicates that a component is eligible for registration when one or more specified profiles are active.
  • This entry was posted in New Features and tagged , . Bookmark the permalink.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">