S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation would you use to load a .properties file into Spring Environment?

  • (A) @PropertySource
  • (B) @LoadProperties
  • (C) @ConfigFile
  • (D) @FileLoad
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@PropertySource is used to load property files into Spring Environment.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.