【笔记】解决打war包时没有web.xml文件
前言
在开发JavaWeb项目时,因为使用注解进行配置,所以没有创建web.xml文件,此时打包时报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project SpringDemo: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
解决问题
pom.xml
1 | <build> |