spring项目启动过程

spring中Bean的解析注册和初始化之前的事:
转载:https://www.cnblogs.com/luoluoshidafu/p/6442055.html,

这个里面能看到哪里调用了refresh()方法:
https://blog.csdn.net/bluuusea/article/details/79925871,
这个里面也有,更全面一点:
https://www.jianshu.com/p/dc64d02e49ac

MVC中DisPatcher的执行过程:
https://www.jianshu.com/p/0f981efdfbbd

准备工作完了,走到了refresh()方法,开始解析:
https://blog.csdn.net/weililansehudiefei/article/details/74178427,
这个比较狠:
https://blog.csdn.net/yangliuhbhd/article/details/80790761

怎么整合的?
tomcat启动时候web.xml里会有和来启动一个springframework的contextListen,里面会调用refresh()方法启动spring容器。
web.xml里面还有来拦截"/" 下面的请求,走到springframework里的DispatcherServlet里面,然后各种执行handler等等。

猜你喜欢

转载自blog.csdn.net/weixin_39312465/article/details/84790938