打开Eclipse Windows——Preferences——Server——Runtime Environments——Add 选择一个与你电脑上安装的Tomcat对应的版本——next 选择Tomcat所在路径——选择自己电脑上的jdk——finish