Spring是一个开源的控制反转(Inversion of Control,IoC)和面向切面(AOP)的容器框架,它的主要目的是简化企业开发。
下面来介绍Spring容器的实例化
所需jar文件:
spring.jar
commons-logging.jar
实例化Spring容器常用的两种方式
方法一:在类路径下来寻找配置文件来实例化容器
ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]{