S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to autowire a bean by its type?

  • (A) @Resource
  • (B) @Inject
  • (C) @Autowired
  • (D) @BeanInject
  • Correct Answer - Option(C)
  • Views: 14
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Autowired tells Spring to inject a bean by type.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.