您的位置:首页 > 其它

怎样理解一个新项目?

2016-12-16 10:03 197 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐