解决方法是右键工程--》debug as -->debug configuration,找到Apach Tomcat 点击source,将default 文件夹删除,然后点击Add 添加本地的 java project 项目即可