Back to course

Using @Value for Externalized Configuration

Spring Boot 0 to Hero: The Complete Java Backend Masterclass

Injecting Values

The @Value annotation is used to inject values from property files into your Spring beans.

java @Value("${my.custom.property}") private String myProp;