idea创建一个webapp项目

idea创建webapp项目

idea创建webapp项目

这里要添加参数:archetypeCatalog=internal,否则,生成的是个空项目。

idea创建webapp项目

解决方案:

快捷键ctrl+alt+s,打开settings对话框,搜索“runner”,添加VM参数:-Dmaven.multiModuleProjectDirectory=$M2_HOME,如下图

idea创建webapp项目

重新生成项目,就OK了。

idea创建webapp项目

没有创建java目录,接下来创建。

idea创建webapp项目

这是一个普通的文件目录,我们要把它转换为源目录。

idea创建webapp项目

idea创建webapp项目

接下来,配置tomcat.

idea创建webapp项目

idea创建webapp项目

idea创建webapp项目

idea创建webapp项目

idea创建webapp项目

idea创建webapp项目

idea创建webapp项目

自动打开浏览器

idea创建webapp项目

相关文章: