1、Windows --> preferencce :  (如果没有server选项,可以参考这个:https://blog.csdn.net/qq_37471298/article/details/80980006?utm_source=blogxgwz5)

在eclipse中配置tomcat 随笔 第1张

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

2、在这个目录下面选择你所下载的Tomcat

在eclipse中配置tomcat 随笔 第2张

3、选择tomcat的安装目录  然后finish

在eclipse中配置tomcat 随笔 第3张

 

4、然后在下面就会显示这个,点击这个(如果没有:Windows --- show views  --- other  --- server)

 

 在eclipse中配置tomcat 随笔 第4张

5、选择对应的tomcat 然后finish

在eclipse中配置tomcat 随笔 第5张

此时,eclipse中的tomcat 只是复制了一份本地的tomcat

即使在eclipse中开启了tomcat中,在网页中输入http://localhost:8080 也不会有小猫出现

 

 6、将eclipse中的tomcat 与本地的 tomcat 关联起来

右击

在eclipse中配置tomcat 随笔 第6张

 选择第二个选项 

 在eclipse中配置tomcat 随笔 第7张

保存之后,eclipse中的tomcat就会关联本地的tomcat

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄