What is the use of @autowired annotation?



What is the use of @autowired annotation?..

Answer / Anuj Kumar Verma

The @Autowired annotation is used in Spring Framework to inject dependencies automatically. When applied to a field, constructor, or setter method, Spring will ensure that the corresponding dependency is autowired.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is current version of spring?

1 Answers  


What is aspectj used for?

1 Answers  


Is @component a singleton?

1 Answers  


Are annotations inherited?

1 Answers  


What is the difference between concern and cross cutting concern in spring aop?

1 Answers  


What is jpa in spring boot? : Spring Boot

1 Answers  


Can we send an object as a response to the controller’s handler method?

1 Answers  


What is the syntax to add a bean in the spring application?

1 Answers  


What does requestmapping annotation do?

1 Answers  


What is the advantage of spring boot? : Spring Boot

1 Answers  


Which is better spring jdbc or hibernate?

1 Answers  


What is the difference between lazy loading and eager loading?

1 Answers  


Categories