title: Does spring boot support using both properties and yml files at the same time?
body: <p>I have a spring boot application and I want to use both a yml file for my application properties and also a plain application-${profile}.properties file set to configure my application. </p>
  
  <p>So my question is can this be done and if so, how do you configure spring boot to look for both the yml file and the properties and merge them into one set per environment?</p>
  
  <p>As to why I want/need to use both, it is because I like the flexibility and ease of use of yml files but an internal component (for encryption) requires using the properties file set.  </p>
  
  <p>I did see this point being made <a href="http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-yaml-shortcomings">YAML files can’t be loaded via the @PropertySource annotation</a></p>
  
  <p>but nothing stating whether both can be used together.   </p>
  
  <p>Please provide detailed configuration (XML or Java config) on how to get this working.</p>
  
  <p>TIA,</p>
  
  <p>Scott</p>