spring启动流程?
spring的启动是建筑在servlet容器之上的,所有web工程的初始位置就是web.xml,它配置了servlet的上下文(context)和监听器(Listener),
下面就来看看web.xml里面的配置:
spring的上下文监听器
contextConfigLocation
/WEB-INF/spring/application_context.xml
org.springframework.web.context.ContextLoaderListener
spring的启动其实就是IOC容器的启动过程,通过上述的第一段配置