1、通过新建module的时候勾选“Create from archetype”,然后选择maven-archetype-webapp,这样项目建完后就会自动下载模板
2、新建好的web应用结构如下: