In Spring 3.0 the support for the CDI annotations @Named and @Inject are provided.
1) @Inject instead of Spring’s @Autowired to inject a bean.
2) @Named instead of Spring’s @Component to declare a bean.
Step 1: Create a simple Maven project. Just press enter for all the prompts.