1. Overview
We can leverage the capabilities of Spring DI engine
using the annotations in the org.springframework.beans.factory.annotation
and org.springframework.context.annotation packages
.
We often call these “Spring core annotations
” .
2. DI-Related Annotations
@Autowired
@Bean
@Qualifier
@Required
@Value
@DependsOn
@Lazy
@Lookup
@Primary
@Scope
3. Context Configuration Annotations
We can configure the application context
with the annotations described in this section.
@Profile
@Import
@ImportResource
@PropertySource
@PropertySources