Eclipse配置tomcat 打开eclipse, window --> Preferences --> Server --> Runtime Environment 选择Add... 然后按步骤将tomcat添加进去。