web.xml is missing and is set to true报错解决办法
程序员文章站
2022-05-19 12:02:52
...
web.xml is missing and is set to true,eclipse报错解决办法(两种解决方法)
- 右击项目→JavaEE Tools→Generate Deployment Discriptor Stub,然后系统会在src/main/webapp/WEB_INF文件夹下创建web.xml文件,ok!
- 第二种解决方法:在pom.xml中加入配置如下:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
推荐阅读
-
新建Maven工程,pom.xml报错web.xml is missing and
is set to true -
MySQL报错合集解决办法: server has gone away, @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON
-
web.xml is missing and is set to true报错解决办法
-
web.xml is missing and
is set to true -
web.xml is missing and
is set to true -
新建Maven工程,pom.xml报错web.xml is missing and
is set to true -
Mac 编译 openwrt报错 *** missing separator. Stop 的解决办法
-
关于jsp web项目,jsp页面与servlet数据不同步的解决办法(报错404、405等)即访问.jsp和访问web.xml中注册的/servlet/的区别
-
MySQL报错合集解决办法: server has gone away, @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_MODE = ON