title: How to read from application.yml file in Java
body: <p>I wrote an e mail program. But I had to change the some configs, so in my project I need to know how to read from yaml for  my loginUrl</p>
  
  <p>my code below;</p>
  
  <pre><code>userNotificationEmail.setIsActive("F");
                                  userNotificationEmailRepository.save(userNotificationEmail);
                                  activationResultType.setResultCode(ActivationResultCode.SUCCESSFUL);
                                  activationResultType.setUser(userMapper.fromUser(userEntity));
                                  activationResultType.setLoginUrl(loginUrl); 
                                  return activationResultType;
  </code></pre>