1.Tomcat的下载和配置
2.Tomcat 从 v7.0 开始,性能方面有明显提升。
3.Tomcat分为安装版与免安装版两种,在开发中建议使用免安装版的Tomcat,解压缩即可。
4.Tomcat 404 问题:http://localhost:8080/ 解决方案
- 分析:因为用eclipse启动tomcat,不是用到的tomcat下的startup,而是用的eclipse自己的一些配置,所以出现了404。
- 解决:Window->Show View->Servers 右键单击Server面板上的那个tomcat 选择 Add and Remove 在出现的窗口中选
择 Remove 掉所有工程 关闭窗口后在右键单击tomcat 选择clean...,Server Locations就可选了。
找到Servers窗口,双击tomcat服务配置一下,在Server Locations那里,选择
“Use Tomcat installatin(takes control of Tomcat installation)”
5.Tomcat 版本 对应 JDK 版本
Servlet Spec | JSP Spec | EL Spec | WebSocket Spec | JASPIC Spec | Apache Tomcat version | Actual release revision | Supported Java Versions |
4.0 | TBD (2.4?) | TBD (3.1?) | TBD (1.2?) | 1.1 | 9.0.x | 9.0.0.M4 (alpha) | 8 and later |
3.1 | 2.3 | 3.0 | 1.1 | 1.1 | 8.5.x | 8.5.0 (beta) | 7 and later |
3.1 | 2.3 | 3.0 | 1.1 | N/A | 8.0.x | 8.0.33 | 7 and later |
3.0 | 2.2 | 2.2 | 1.1 | N/A | 7.0.x | 7.0.69 | 6 and later (7 and later for WebSocket) |
2.5 | 2.1 | 2.1 | N/A | N/A | 6.0.x | 6.0.45 | 5 and later |
2.4 | 2.0 | N/A | N/A | N/A | 5.5.x (archived) | 5.5.36 (archived) | 1.4 and later |
2.3 | 1.2 | N/A | N/A | N/A | 4.1.x (archived) | 4.1.40 (archived) | 1.3 and later |
2.2 | 1.1 | N/A | N/A | N/A | 3.3.x (archived) | 3.3.2 (archived) | 1.1 and later |
6.待更新...