S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method retrieves the application environment in Spring Boot?

  • (A) context.getEnv()
  • (B) System.getenv()
  • (C) SpringApplication.getEnvironment()
  • (D) ApplicationContext.getEnvironment()
  • Correct Answer - Option(D)
  • Views: 12
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
The Environment can be retrieved from ApplicationContext using getEnvironment().

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.