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 |
What is current version of spring?
What is aspectj used for?
Is @component a singleton?
Are annotations inherited?
What is the difference between concern and cross cutting concern in spring aop?
What is jpa in spring boot? : Spring Boot
Can we send an object as a response to the controller’s handler method?
What is the syntax to add a bean in the spring application?
What does requestmapping annotation do?
What is the advantage of spring boot? : Spring Boot
Which is better spring jdbc or hibernate?
What is the difference between lazy loading and eager loading?