Reputation: 711
What is difference between @Value and @ConfigurationProperties injection? Why Value properties are validated and ConfigurationProperties are not?
Upvotes: 4
Views: 458
Reputation: 149
@Value is a core container feature and it does not provide the same features as type-safe Configuration Properties. It's maybe for that... I think. I currently work (discover) on spring (MVC) and I recommend you to take a look at the spring reference (Externalized Configuration)
Upvotes: 1