1.右击项目->build path ->configure build path ->把tomcat修改成自己的版本 2.右击项目 -> properties -> targeted Runtimes 勾上自己的