项目右键--java EE Tools--Generate Deloyment Descriptorsub 会看到在src-main-webapp-WEB-INF下生成web.xml文件,项目就不会再报错了。 相关文章: