日期:2014-05-16 浏览次数:20889 次
Resource res = new ClassPathResource("SPRING配置文件路径"); BeanFactory factory = new XmlBeanFactory(res);
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl"); Resource res = new ClassPathResource("SPRING配置文件路径"); BeanFactory factory = new XmlBeanFactory(res);