2014-10-27 16-24-09 liulin
说明:
Myeclipse中自带Tomcat,如果不想用Myeclipse自带的Tomcat,可以使用本地的Tomcat,
下面将介绍如何在Myeclipse中配置本地的Tomcat的具体步骤。
前提准备:
1.已经安装Tomcat到本地(从官网下载Tomcat,解压即可用);

2. 右击:

注:由于之前已经添加了Tomcat 7.x ,所以上图中已经显示了Tomcat 7.x。
3、选择左栏的Tomcat:

4. 配置完成后,将会出现如下图所示:

注:上图中的Tomcat 7.x 为自己刚刚配置的,而Myeclipse Tomcat 和Myeclipse Derby为
Myeclipse自带的,这两个也可以在Myeclipse进行配置,具体步骤可见下面:

5. 接下来为Tomcat 7.x添加web项目:

见下图:

6. 运行web项目:

见下图:
