S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to inject values from application.properties?

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

Explanation by: Shyam Dubey
@Value allows you to inject property values using placeholders like ${property.name}.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.