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.