eclipse 创建 maven 项目时遇到web.xml is missing and <failOnMissingWebXml>异常

    xiaoxiao2021-03-25  76

    报错原因:缺失web.xml

    解决办法:

    拷贝 web.xml 的 DOC 头:复制到自己创建的 web.xml

    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> </web-app>

    这样就解决了 can not find web.xml 的问题了!

    转载请注明原文地址: https://ju.6miu.com/read-38399.html

    最新回复(0)