I am always facing issues with @Autowired . please any one can share detailed in depth knowledge on @Autowired annotation. with examples will be appreciated.
Thank you in advance.
I am always facing issues with @Autowired . please any one can share detailed in depth knowledge on @Autowired annotation. with examples will be appreciated.
Thank you in advance.
public class ArticleController {
@Autowired
private IArticleService articleService
}
Autowiring is the implcit way to inject dependencies with autowiring no-need to collobrate with property tags and constructor-args tags using xml configuration In above example instance of IArticleService to the controller.We don't need to explicitly inject through setters or constructors