IDEA使用maven创建javaWeb项目
1、Create New Project
选择Maven-> 勾选Create from archetype->选择maven-archetype-webapp
Next
GroupId 填你公司网址倒起来写
ArtifactId 填你项目名称
Next
可以使用IDEA内置的maven,也能使用自己安装的maven
使用默认的直接Next就行
Finish
我们可以发现,项目结构不全,那就自己加进去吧
按下ctrl+shift+alt+s 进入Project Structure
Modules->Sources
对着main右键->New Folder
建几个文件夹 java resources target test
对”java“文件夹右键->Sources
对”resources“文件夹右键->Resources
等等
ok,项目建好了
需要打成war包时在下方Terminal输入 mvn install
出现BUILD SUCCESS
war包就有了