@Bean annotation is used to indicate that a method instantiates, configures, and initializes a new object to be managed by the Spring IoC container. @Bean is most often used with
@Configuration beans. Annotating a class with
@Configuration indicates that its primary purpose is as a source of bean definitions.
name() attribute is available, the default strategy for determining the name of a bean is to use the name of the
@Configuration is meta-annotated with
@Configuration classes are candidates for component scanning and therefore may also take advantage of
@Inject like any regular