最近新建springboot项目,pom.xml报错 web.xml is missing and <failOnMissingWebXml> is set to true
主要项目里没有web.xml,我们只需要配置下
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin>
忽略web.xml即可;