pom文件报错web.xml is missing and <failOnMissingWebXml> is set to true

来源:互联网 发布:三剑客软件下载 编辑:程序博客网 时间:2024/06/17 14:14

新建一个maven项目后,pom文件报错web.xml is missing and <failOnMissingWebXml> is set to true,这是因为你因为你WEB-INF下没有web.xml导致造成的


如何是web项目,需要在webapp下新建WEB-INF文件夹,在此文件夹中新建web.xml即可解决

web.xml

<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"id="taotao" version="2.5"><display-name>manager</display-name><welcome-file-list><welcome-file>index.html</welcome-file><welcome-file>index.htm</welcome-file><welcome-file>index.jsp</welcome-file><welcome-file>default.html</welcome-file><welcome-file>default.htm</welcome-file><welcome-file>default.jsp</welcome-file></welcome-file-list></web-app>


http://blog.csdn.net/qq_31302091/article/details/73860822点击打开链接

阅读全文
0 0
原创粉丝点击