How to mock @Value field in Spring Boot

The @Value annotation injects externalized properties into a Spring Boot application. The field s value is usually read from the application.properties or application.yml file. While @Value eases the reading of externalized [...]