Back

Why @Autowired injection is not recommended

Created 1 year ago
92 Views
1 Comments
vishnuvardanKP
@vishnuvardanKP
vishnuvardanKP
@vishnuvardanKPProfile is locked. Login

Why @Autowired injection and setter based injection is not recommended in spring? I have read in a few blogs that contructor based dependency injection is recommended. Can you please help me understand what is the reason behind it?

Comments
Please login to comment.