怎样理解一个新项目?

1,明确使用了什么框架?
springmvc、struts1、struts2(Webwork2)


Spring MVC和Struts2的区别
http://blog.csdn.net/fireofjava/article/details/45273615


2,我们一般都是一个web项目,部署在tomcat上
Tomcat 配置详解/优化方案
http://www.jianshu.com/p/637d462262ec


对于基于servlet的web容器来说,遵循的是servlet规范,入口配置文件是web.xml。这类web容器会在启动的时候会而且仅会加载如下三种类型的对象:
    servlet
    context listener
    filter


而且有一定的加载和销毁顺序!
    Loading Servlets, Context Listeners, and Filters


    Servlets, Context Listeners, and Filters are loaded and destroyed in the following order:
    Order of loading:
        Context Listeners
        Filters
        Servlets


    Order of destruction:
        Servlets
        Filters
        Context Listeners


    Servlets and filters are loaded in the same order they are defined in the web.xml file and unloaded in reverse order. Context listeners are loaded in the following order:
        All context listeners in the web.xml file in the order as specified in the file
        Packaged JAR files containing tag library descriptors
        Tag library descriptors in the WEB-INF directory


一般来说servlet用于接收用户请求,filter作为servlet的拦截器,context listener则作为事件监听器。所以一般都是使用servlet来加载web MVC框架。


3,spring mvc启动
Spring MVC的启动过程
http://www.cnblogs.com/mingziday/p/4987058.html


spring中ContextLoaderListener和DispatcherServlet区别 ApplicationContext 
http://tianxingzhe.blog.51cto.com/3390077/1659991


Spring中使用classpath加载配置文件浅析 
https://my.oschina.net/yjx/blog/6253


4,确定入口
a,@RequestMapping
b,dubbo provider
c,qmq监听
d,qschedule监听
e,其他的各种定时调度
f,初始化
Spring容器中的Bean几种初始化方法和销毁方法的先后顺序 
http://blog.csdn.net/caihaijiang/article/details/8629725
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小雄哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值