Spring @Value annotation tricks

Spring framework provides@Value annotation in the org.springframework.beans.factory.annotationpackage. This annotation is used at various level in our application either at field level for expression-driven dependency injection in which a value can be injected into a variable in a class or at the parameter level of a method or a constructor that indicates a default value expression for the main argument. It is also used for dynamic…