解决办法如下:
1、 点击 Window-->Preferences-->Server-->RuntimeEnvironments-->Add...-->选择与你下载的 tomcat 对应的版本-->Next-->Browse...选择你tomcat下载
的磁盘位置(如:我的tomcat下载位置为D:apache_tomcatapache-tomcat-8.0.53)-->Finish
2、 点击项目,右键选择Build Path-->Configure buildpath-->Java Build Path -->Libraries-->Add Library...-->ServerRuntime-->Next
-->Apache Tomcat v8.0(你自己下载的版本)--Finish
我是这个链接解决的(https://blog.csdn.net/Sunny5319/article/details/80794184)