1.1 Configuring the Java environment
1. Download and install Jdk1.7 or Jdk1.8
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Create a new environment variable java_home, point to the JDK 's installation directory, such as C:\Program files\java\jdk1.7.0_75 .
3. Add%java_home%\bin and%java_home\jre\bin to the path variable, separated by semicolons.
4. open a cmd, execute java –version, showing the Java build number indicates Java The installation was successful.
1.2 Configuring the Maven environment
1. Download Mavencompatible with the idea version(IDEA13 and Maven3.3 incompatible, with Maven3.1 compatible; IDEA14 with the Maven3.3 compatible)
http://maven.apache.org/download.cgi
2. extract Maven to a directory that is not easy to passive, such as C:\Program files\java\apache-maven-3.3.3.
3. Create a new environment variable m2_home, pointing to the extracted Maven directory, such as C:\Program files\java\ apache-maven-3.3.3, add %m2_home%\binto the Path variable.
4. Copy the settings.xml files to the following two paths, which Configure the Maven download Dependency Package Server Address:
A. C:\Users\User_Name\.m2
B. path\to\apache-maven-3.3.3\conf
5. Open a cmd, execute mvn -V, show maven version number indicates Maven installation succeeded.
1.3 prepare Intellij idea development tool
1. Download and install idea
https://www.jetbrains.com/idea/download/
2. Select License Server in the License Activation window, enter the URL http://idea.imsxm.com/and click Activate to activate. The License Activation window is located at Help, register.
3. Open the project in idea through the project location of file---open, git clone.
1.4 idea in installing LombokPlugins
1. in idea, open File--Settings
2. go to Plugins, click "Browse repositories" and search to Lombok for installation. if the direct installation is not possible, go to the official website https://projectlombok.org/ Download a compatible Lombok jar Package , click here "Install from disk ..." for installation.
1.5 idea in configuration Maven
1. in idea, open File--Settings
2. Go to build execution Deployment, build Tools-maven, you can choose to use your own installed maven via maven home directory (I If you want to modify the path of the user profile and the local repository , you can override the users settings file and native repository settings .
1.6 idea in configuration JDK
1. in idea, open File---Project Structure, or click the shortcut icon in the top right corner of the idea.
2. Enter platform Settings, SDKs, and create a new JDK that points to the JDK installation path (that is, the java_home path that was previously configured ).
3. Go to Project Settings, project, select the SDK you added in the previous step , click Apply, and click OK.
1.7 How to configure encoding in idea
1. in idea, open File--Settings
2. Enter editor, file encodings, to set the IDE Encoding, Project Encoding, and default Encoding for properties file to utf-8.
3. Change The charset specified in the encodings.xml file under the . Idea folder to UTF-8.
4. set the File Encoding shortcut setting in the idea bottom menu bar to UTF-8.
Java Environment Building Guide