你这种情况应该是丢server runtime库了,项目右键->Properties->Java Build Path->Libraries->Add Library->Server Runtime,选中你的配置完的tomcat库就完事