1. 安装JAVA
JDK下载地址
安装教程:http://www.cnblogs.com/ottox/p/3313540.html
2. 安装IDEA
下载地址:http://www.jetbrains.com/idea/
注册码地址:http://idea.lanyus.com/
下载安装填写注册码完成后,将下来我们需要对IDEA进行配置。
3. IDEA相关配置
3.1 杂项配置



3.2 JRebel插件
JRebel,热更插件。当开发人员频繁修改class代码时,不需要重新启动tomcat或其他web容器,实现热更新。因此,在开发过程中,可显著提高开发效率。

安装完成后,由于此插件是收费的,需要进行注册验证(自行百度)。
此时,在项目的DEBUG或RUN时, 我们可采用此插件来进行,如下图所示:

3.3 maven仓库配置
由于一些不可描述的原因,maven项目在引用下载库时,会非常慢。
因此,我们建议使用国内的一些maven仓库,下面我们采用的是阿里云的maven仓库。

在此路径下,找到对应的settings.xml文件(若没有,则百度一下),修改XML文件:

<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!-- 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>
-->
</mirrors>
网友评论