S

Shyam Dubey • 3.70K Points
Extraordinary

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

  • (A) @Bean
  • (B) @Value
  • (C) @Inject
  • (D) @Autowired
  • Correct Answer - Option(D)
  • Views: 16
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey

@Autowired is used to inject a dependency by type from the Spring context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.