title: Springs XmlBeanFactory is deprecated
body: <p>I try to learn Spring. I am following this site <a href="http://www.roseindia.net/spring/spring3/spring-3-hello-world.shtml">http://www.roseindia.net/spring/spring3/spring-3-hello-world.shtml</a></p>
  
  <p>I tried one example in that. I am using some what like below, but here it shows:</p>
  
  <blockquote>
    <p>The type XmlBeanFactory is deprecated</p>
  </blockquote>
  
  <p>What do I have to use as an alternative to this?</p>
  
  <pre><code>public class SpringHelloWorldTest {
      public static void main(String[] args) {
  
          XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("SpringHelloWorld.xml"));
  
          Spring3HelloWorld myBean = (Spring3HelloWorld)beanFactory.getBean("Spring3HelloWorldBean");
          myBean.sayHello();
      }
  }
  </code></pre>