I have the follow YAML file
git.username: myusername
git.password: mypassword
And in my Java Source file, I have the following annotation
@Value("${git.username}")
private String username;
@Value("${git.password}")
private String password;
Everything works fine till this point. However, it is not able to retrieve the value when I changed the format of the YAML to the following.
git:
username: myusername
password: mypassword
How should I reference the yaml value in this format? @Value(???)