为了账号安全,请及时绑定邮箱和手机立即绑定

加载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("我输入的参数"));
    }    一直报错

正在回答

1 回答

 我也觉的  这个方法 有点看不懂,跟我们老师用的不一样

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Spring入门篇
  • 参与学习       268802    人
  • 解答问题       1026    个

为您带来IOC和AOP的基本概念及用法,为后续高级课程学习打下基础

进入课程

加载spring.XML配置文件 这快不是吧很清楚

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号