title: What are the ways to get ApplicationContext object in Spring?
body: <p>Hi i want to know what are the different ways to get ApplicationContext Object in Spring?
  I know only one way that is,</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
  </code></pre>
  
  <p>is there any other ways? if it is please let me know.</p>
  
  <p>Thanks.</p>