What are the different types of annotations in spring?



What are the different types of annotations in spring?..

Answer / Divya Pandey

The Spring Framework uses several types of annotations, including: @Component (or @Controller, @Service, or @Repository for specific components), @Autowired, @PostConstruct, @PreDestroy, @Value, @Qualifier, and AspectJ annotations when using AOP.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

Why spring is a lightweight framework?

1 Answers  


What is meant by stereotype annotation?

1 Answers  


What is the scope of spring beans?

1 Answers  


What are the different aop implementations?

1 Answers  


What is annotation wiring and how do we turn it on?

1 Answers  


What are inner beans?

1 Answers  


What is the function of model attribute annotation?

1 Answers  


What is @enableautoconfiguration in spring?

1 Answers  


Can we have both constructor and setter injection?

1 Answers  


What is the function of annotation @requestbody?

1 Answers  


What is postmapping?

1 Answers  


How a spring is formed?

1 Answers  


Categories