title: How does a web application written in Spring using only a single parent context?
body: <p>In the spring Documentation,definition under <code>AppliccatonContext</code> They have states that an <code>ApplicationContext</code> provides mechanism to Inheritance from a parent context and they have further explain this as follow.</p>
  
  <blockquote>
    <p>Inheritance from a parent context. Definitions in a descendant context
    will always take priority. This means, for example, that a single
    parent context can be used by an entire web application, while each
    servlet has its own child context that is independent of that of any
    other servlet.</p>
  </blockquote>
  
  <p>According to their explanation,I need to know that How does a web application written in Spring use a single parent context? What kind of design approch they have used? and What are the pros and cons of using only single parent context? Can any one explain me this further with a proper example please.</p>