The type XmlBeanFactory is deprecated 在3.1以后已经废弃 解决方案

The type XmlBeanFactory is deprecated 在3.1以后已经废弃

-----解决方案--------------------
Resource res = new ClassPathResource("bean.xml");
DefaultListableBeanFactory factory= new DefaultListableBeanFactory ();
XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);
reader.loadBeanDefinitions(resource)

你可能感兴趣的:(spring)