IDE:Eclipse查看Servlet源码

一、源码下载

1、打开tomcat官网:http://tomcat.apache.org/    , 点击右侧下载菜单(以tomcat-7为例)进入下载页面:http://tomcat.apache.org/download-70.cgi

2、在下载页面:有Binary Distributions和Source Code Distributions两种资源,我们查看源码,下载源文件:Source Code Distributions(选择zip版本下载)

 

二、查看

在项目的Libraries中,随便点servlet-api.jar开一个类,按步骤导入第一步下载的   apache-tomcat-7.0.73-src.zip   文件即可。

 

参考文章:

Tomcat 7 源码分析 - 下载 tomcat source code 并导入eclipse

tomcat源码下载并导入eclipse  

 

posted @ 2016-11-16 10:28  lashou  阅读(2372)  评论(0编辑  收藏  举报