Tomcat服务器的安装
安装
下载地址 https://tomcat.apache.org
进入tomcat首页我们可以看到9.0.xx的版本
![](https://img-blog.csdnimg.cn/img_convert/09b1df65ff9984d73d43019cc4aa339d.png)
我们这边点tar.gz下载
下载完成之后双击解压然后
![](https://img-blog.csdnimg.cn/img_convert/3a1d331c61bf6f186536d0c5c2c3415a.png)
将下载好的,并解压完成的问价拷贝在根目录下面
将名字改为Tomcat,(这个是为了好分辨)
![](https://img-blog.csdnimg.cn/img_convert/9bedd3e558d1e20ac485996fe6bf1658.png)
启动Eclipse
打开About Spring Tool Suite4,找到Preferences(设置)
![](https://img-blog.csdnimg.cn/img_convert/fc3616502fd21b5e176059f911009e35.png)
打开Preferences(设置)找到Server>Server Runtime Environments
![](https://img-blog.csdnimg.cn/img_convert/d1ea8d0d73450f079cc335a005171383.png)
点解Add(添加)选择你下载的对于Tomcat的版本,我这里下的是9.0的版本,所以我选择的(Apache Tomact v9.0),最后Next
![](https://img-blog.csdnimg.cn/img_convert/24f250fb86c6b5fd55c97f8776ee97ca.png)
在(Tomcat installation directory)添加刚才下载的Tomcat包,最后Finish一下
![](https://img-blog.csdnimg.cn/img_convert/c4bcae3b0b5d7584986401d67777d4d0.png)
点解Window> Show View>Other
![](https://img-blog.csdnimg.cn/img_convert/e01d807d6ef48b7742458a0da6e6f31d.png)
![](https://img-blog.csdnimg.cn/img_convert/af7fa67df1823a1e561c9d7d91173ebf.png)
6.在输入框里面输入Server,会弹出一个页面
![](https://img-blog.csdnimg.cn/img_convert/2cae92e5b9db77d172103bcbe685f13c.png)
![](https://img-blog.csdnimg.cn/img_convert/af4d7ab38bc459e63c6115c63815d33d.png)
![](https://img-blog.csdnimg.cn/img_convert/8f2e8cd5b8683863eac740a537c4b22a.png)
7.双击这个页面就会弹出下一个页面
![](https://img-blog.csdnimg.cn/img_convert/dd4596e4757a369ee36ca4eefb672d18.png)
![](https://img-blog.csdnimg.cn/img_convert/4969d4fa02273426e400abeaa9dab738.png)
8.然后运行Debug
9.浏览器访问 localhost:8080 成功