永发信息网

如何调试springmvc源代码

答案:2  悬赏:60  手机版
解决时间 2021-03-15 08:09
  • 提问者网友:沉默的哀伤
  • 2021-03-14 12:02
如何调试springmvc源代码
最佳答案
  • 五星知识达人网友:由着我着迷
  • 2021-03-14 12:29
public class ContextLoaderListener extends ContextLoader
implements ServletContextListener {


public void contextInitialized(ServletContextEvent event) {
this.contextLoader = createContextLoader();
if (this.contextLoader == null) {
this.contextLoader = this;
}
this.contextLoader.initWebApplicationContext(event.getServletContext());
}
...
}
全部回答
  • 1楼网友:怙棘
  • 2021-03-14 13:39
首先要了解设计模式,这个是阅读大师源码的一个桥梁,很多代码看上去很多,其实就是一种模式。了解了模式后,整个关系图就清楚了。 还有善于分片阅读,找简单的读,可以先读spring jdbc,这部分的模板跟回调看起来会简单点。 然后再看ioc,看ioc之前必须对spring ioc原理掌握的很透彻,怎么扩展,怎么写胶水代码整合其他框架。建议熟读spring-reference。 然后再读源码,先学习怎么写出漂亮的代码,再学习怎么设计出漂亮的模式。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯