S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which Spring Boot annotation is used to bind external configuration to a Java class?

  • (A) @Value
  • (B) @Configuration
  • (C) @ConfigurationProperties
  • (D) @ComponentScan
  • Correct Answer - Option(C)
  • Views: 11
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@ConfigurationProperties binds external properties (like from application.properties) to a POJO.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.