1.打开eclipse,点击Window--preferences--server--Runtime Environment--add--Apache Tomcat7.0
2.点击Browse,路径为电脑上安装的Tomcat路径。