如果你的Spring 使用的是1.2 则没有 XmlBeanFactory(InputStream) 而是 XmlBeanFactory(Resource).
org.springframework.core.io.ClassPathResource.ClassPathResource resource = new org.springframework.core.io.ClassPathResource.ClassPathResource("bean.xml");
XmlBeanFactory factory = new XmlBeanFactory(resource);
org.springframework.core.io.ClassPathResource.ClassPathResource resource = new org.springframework.core.io.ClassPathResource.ClassPathResource("bean.xml");
XmlBeanFactory factory = new XmlBeanFactory(resource);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货