Interview questions
Question 71 of 254
FreeWhat is @ConfigurationProperties and how does it differ from @Value?
Spring Boot Configuration & Properties
@ConfigurationProperties binds an entire group of related, hierarchically-prefixed properties onto a strongly-typed Java class (with fields matching each property name) in one step, supporting nested objects, lists, and maps, and integrating with Bean Validation. @Value injects a single property value into a single field via a SpEL expression — simple for one-off values, but unwieldy and repetitive for anything with more than a few related settings.
Intermediate5 min

