IDEA的maven设置
*打开—>File—->Settings 配置 maven**

设置runner下的VM option为-DarchetypeCatalog=internal
在IDEA中创建一个maven工程
1.选择 idea 提供好的 maven 的web 工程模板,也可以不选择

2.确认项目名称

3.确认maven配置

4.补充目录

5.标记为资源文件

6.其中App.java是默认写好可以运行
建立web的maven工程选择maven-archetype-webapp骨架即可
需要补充java目录,并将其标记为Sources root