【英文】解决打war包时没有web.xml文件
Preface
When developing a JavaWeb project, if annotations are used for configuration, there will be no web.xml file created. In this case, an error will occur during packaging: 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)
Solution
1 | <build> |