您的位置:首页 > 产品设计 > UI/UE

web.xml is missing and <failOnMissingWebXml> is set to true

2017-06-09 21:55 477 查看
1、错误描述
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>
<groupId>com.you.cup</groupId>
<artifactId>CUP</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

</project>
web.xml is missing and <failOnMissingWebXml> is set to true

2、错误原因
      由错误提示可知,缺少web.xml文件

3、解决办法
(1)选中项目,鼠标右键,点击“Java EE Tools”
(2)选择“Generate Deployment Descriptor Sub”,生成WEB-INF文件夹和web.xml
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐