一般是添加服务器 解决方法: 右键点击项目>Bulid Path>Configure Bulid Path>Libraries>add Libraries>Server Runtime>选择tomcat>apply