Spring管理bean:
1.从web.xml里面配置的ContextLoaderListener开始。
2.ContextLoaderListener继承ContextLoader
3.执行ContextLoaderListener的contextInitialized方法,获得servletContext.
4.把servletContext传入ContextLoader的initWebApplicationContext(ServletContext servletContext)方法并执行。