第一步在电脑上打开idea,点击File->New->Project
第二步进去New Project界面之后,在java右侧,首先需要选择JDK安装的路径,点击New
第三步选择好JDK安装的路径之后,创建一个简单的java项目,不需要勾选框架,直接点击Next
第四步进去是否选择模板界面,不需要勾选,点击Next
第五步输入要创建的java项目名称和项目存储路径,点击Finish就完成了
第六步成功创建一个java项目之后,项目下有idea和src两个目录,我们主要在src目录下操作,在src目录新建一个包package,然后新建一个Test类,运行main方法,输出Hello,代表java项目运行成功
导入maven项目
第一步在电脑上打开idea,点击File->Open->选择文件夹
配置maven
maven.apache.org/download.cg… 选择版本
我是用的是3.5.4
PATH
导入maven项目需要配置
提高配置速度
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>;
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
点击Import Changes