title: Difference between Spring configuration inheritance and @Import
body: <p>what is the difference between </p>
  
  <pre><code>@Configuration
  class ConfigA extends ConfigB {
     //Some bean definitions here
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@Configuration
  @Import({ConfigB.class})
  class ConfigA {
    //Some bean definitions here
  }
  </code></pre>
  
  <ol>
  <li>And also if we are importing multiple configuration files, how does the ordering happen among the various config.</li>
  <li>And what happens if the imported files have dependencies between them</li>
  </ol>