将项目添加tomcat库 右击: build path -> configure build path–>add library–>server runtime 选择tomcat容器添加后,对项目右击build project