Spring Boot: Load @Value from YAML file
M. Deinum is right, the setup i've provided is working - the yml
file was indented wrong, so the property couldn't be found.
For example: application.yml
key:
name: description here
Your Class:
@Value("${key.name}")
private String abc;