Eclipse和Tomcat的版本问题---已解决
这篇文章主要是解决版本匹配的问题
我的电脑上装的是jdk10,如图:

Tomcat装的是9:

接着配置好环境变量,直接上图:

然后启功Tomcat,在浏览器中输入http://localhost:8080/,如图所示:

接下来在eclipse中配置Tomcat,如图位置添加Tomcat:

接着出现如图所示情况,click即可:

双击打开Tomcat server,修改两处,Ctrl+S保存:

此时启动Tomcat,出现以下错误:

控制台打印以下信息:
-Djava.endorsed.dirs=D:\JavaTools\Software\Tomcat9\apache-tomcat-9\endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules.
经查阅,是版本问题导致
Eclipse 4.8 (Photon)--------Java8--------Tomcat9.0
Eclipse 4.7 (Oxygen)--------Java8--------Tomcat9.0
Eclipse 4.6 (Neon)-----------Java8--------Tomcat9.0
Eclipse 4.5 (Mars)-----------Java7---------Tomcat8.0
Eclipse 4.4 (Luna)-----------Java7--------Tomcat8.0
Eclipse 4.3 (Kepler)---------Java6--------Tomcat7.0
其实在前面的步骤有提示版本:

希望对你有所帮助!