Spring中从Classpath路径中读取XML定义文件的几种方式
【引用】http://dev.firnow.com/course/3_program/java/javajs/200853/112207.html
?
?
?
1.ApplicationContext context = new ClassPathXmlApplicationContext("beans-config.xml");
?2.ApplicationContext context = new ClassPathXmlApplicationContext(
??????????????????????? new String[]??? {"beans-config.xml","beans-config2.xml"}??);
3.ApplicationContext context = new ClassPathXmlApplicationContext("classpath*:beans-config.xml");
4.ApplicationContext context = new ClassPathXmlApplicationContext("beans*.xml");