Kapitalny
Kapitalny

Reputation: 711

Why ConfigurationProperties are not validated?

What is difference between @Value and @ConfigurationProperties injection? Why Value properties are validated and ConfigurationProperties are not?

Upvotes: 4

Views: 458

Answers (1)

Adrien Gadaud
Adrien Gadaud

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

Related Questions