ApplicationContext对象

来源:互联网 发布:shadowsock for mac 编辑:程序博客网 时间:2024/05/29 19:34

Spring框架中有一个类: org.springframework.context.ApplicationContext.

获得途径:

ApplicationContext applicationContext =new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml"); 配置文件路径

通过这个对象可以获得配置文件里面配置的Bean对象等....


原创粉丝点击