下载地址:https://www.jetbrains.com/idea/download/#section=windows

一、Maven、JDK和Server全局配置

1.maven配置

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

2.JDK配置

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

选择项目默认的JDK

IDEA简单配置与webapp项目构建

3.配置Server

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

二、创建一个webapp项目

1.新建

IDEA简单配置与webapp项目构建

2.选择jdk与原型

IDEA简单配置与webapp项目构建

3.填写GroupId和ArtifactId

IDEA简单配置与webapp项目构建

4.选择Maven,然后一路Next到结束

IDEA简单配置与webapp项目构建

5.新建结束后的项目结构

IDEA简单配置与webapp项目构建

6.补全结构

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

7.给添加的包加标签,选中包点击对应的标签

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

8.打包

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

9.配置Server

IDEA简单配置与webapp项目构建

配置tomcat

IDEA简单配置与webapp项目构建

添加war包,然后点击完成

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

10.启动

IDEA简单配置与webapp项目构建

IDEA简单配置与webapp项目构建

 

 

相关文章: