-1

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.

Nagaraju
  • 83
  • 8

1 Answers1

1
      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

chamina
  • 498
  • 3
  • 15