What does @value do in spring boot?

Опубликовано: 30 Апрель 2026
на канале: programming with girish
50
like

In this video we will see how to read application.properties and application.yml File with Spring Boot using @Value annotation.

Highlights
1. What is @value annotation in spring boot?
2. What is the @value annotation used for?
3. What is @valid annotation in spring boot?
4. What is the use of @validated annotation?
5. What is @autowired annotation in Spring boot?
@Value can be used in four way
1. by giving simple default value directly
2. by creating inside the properties file
3. by creating inside the yml file
4. directly by using the properties file syntax in java code.

check it out its a wonderful tutorial