JDK环境的配置
环境变量:
JAVA_HOME :D:\Java\jdk1.8.0_71
Path:%JAVA_HOME%\bin;
ClassPath:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;
Maven相关配置
Maven的下载地址为:http://maven.apache.org/download.cgi
下载好Maven后直接解压到指定的目录,比如D:\Java\maven
然后需要修改Maven的本地仓库位置,也就是Maven下载的依赖存放的位置
Maven安装后在用户目录下有个.m2的目录,这个是本地Repository的位置。
如果该目录下没有Maven的配置文件Settings.xml,可以从%MAVEN_HOME%/conf目录中拷贝一份。
修改如下:
<localRepository>d:/java/repository</localRepository>
<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>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://127.0.0.1:10981/repository/maven-public/</url>
</mirror>
</mirrors>
Git的配置
Git的下载地址为:https://git-scm.com/downloads
windows版本的Git直接安装即可,安装后可以使用Git Bash进行相关的操作。
Git的配置是在用户目录下的.ssh目录中,比如:C:\Users\Administrator.ssh
$ ssh-keygen -t rsa -C "flaw0r@git.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): id_rsa_gitchina
Enter passphrase (empty for no passphrase):
输入上面的命令后,会在.ssh目录下生成两个文件,id_rsa_gitchina和id_rsa_gitchina.pub
拷贝id_rsa_test.pub中的公钥到github中,这里我使用的oschina的gitee
,公钥的添加位置是,个人资料--SSH公钥:
配置好后,还需要修改.ssh目录下的config文件,添加如下内容:
Host gitee.com
HostName gitee.com
User git
IdentityFile C:\Users\Administrator\.ssh\id_rsa_gitchina
idea配置
修改文件注释模板:File--Settings--File and Code Templates
Includes -- File Header
/**
* @author jason_wang
* @date ${DATE} ${TIME}
*/
网友评论