加載spring.XML配置文件 這快不是吧很清楚
??? ClassPathXmlApplicationContext Beanfactory=new ClassPathXmlApplicationContext("spring-ioc.xml");
?? ??? ?/*ApplicationContext ctx = new FileSystemXmlApplicationContext("classpath:spring-ioc.xml");*/
?? ??? ?OneInterface of=(OneInterface) Beanfactory.getBean("oneInterface");
?? ??? ?System.out.println(of.say("我輸入的參數(shù)"));
?? ?}??? 一直報(bào)錯(cuò)
2016-02-26
?我也覺的 ?這個(gè)方法 有點(diǎn)看不懂,跟我們老師用的不一樣