0 votes
in Spring by

What does the @Value annotation do in Spring?

a) It ensures that the property value remains constant

b) It injects values from properties files or literals

c) It checks the value of a bean's property

d) It sets a default value for a bean's property

1 Answer

0 votes
by
b) It injects values from properties files or literals

Explanation:

The @Value annotation in Spring is used to inject values, often from properties files or directly as hardcoded literals.
...