原因tomcat设置问题
1、下载tomcat官网
2、解压缩,放到指定文件夹(防止误删)
3、Windows->Preferences->Runtime Environments->Add->Apache->Apache tomcat 指定版本->Next->第2步tomcat的位置->finish->Apply and close
3、选中项目名,右键Build Path->Configure Build Path->Add Library…->Server Runtime->第3步的代名->finish->apply and close,问题解决