web.xml 已文件存在 src/main/webapp/WEB-INF/web.xml 解决方法: 右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.