title: Spring inject property values from a bean into another bean
body: <p>Have 2 java beans in my spring boot project. First bean gets the values from property file (spring injected) and second bean gets the values from different source.</p>
  
  <p>After spring initialize, I want to merge the property values from second bean into first bean. Please let know if spring provides any class to dynamically inject the values.</p>
  
  <pre><code>first bean gets the values from property file:
  ----------------------------------------------
  @value("username")
  private String username
  @Value("server")
  private String servername
  @Value("inject from second bean")
  private String location
  @Value("inject from second bean")
  private boolean enabled
  
  second bean gets the values from different source
  -----------------------------------------------
  private String location
  private boolean enabled
  </code></pre>