00:07 Value annotation Introduction
03:38 Value annotation with System evn Variable
05:27 Value annotation with System evn Variable expression
06:42 Value annotation with constant value
08:27 Value annotation with default value
09:47 Value annotation with sets
11:18 Value annotation with Maps
In Spring Boot, the @Value annotation is used to inject values from a properties file or environment variables into a Spring bean.
Here's an example:
@Value("${server.port}")
private int port;
In this example, the value of the server.port property from the application.properties file is injected into the port field.
You can also use the @Value annotation to inject values from environment variables:
► https://docs.spring.io/spring-framewo...
► https://gitlab.com/javabootprogrammer...