In this video, we are going to discuss about the @Value annotation in Spring Framework.
we will see with example how to fetch/get value from the application.properties file in spring boot application.
Spring Annotation
Spring Boot Annotation
-In the Spring Framework, the @Value annotation is used to inject values into fields in a Spring bean.
-This annotation can be applied to fields of a class, methods, and constructor parameters,
- It allowing you to inject values from various sources, such as property files, environment variables, System Variables or other Spring beans.
#spring #springAnnotation #springboot
Негізгі бет What is @Value Annotation? Fetch value from property file-Spring & Spring Boot Annotations Series#11
Пікірлер