Java Development (1) - Preparation

Table of contents

1. Configure environment variables

2. MAVEN configuration

1. Configure MAVEN local warehouse address

2. Configure MAVEN central warehouse address

 3. Configure the jdk-based version of MAVEN

3. Configure the idea

1. Configure jdk

2. Configure encoding method

3. Configure Maven

4. Automatically import and delete jar packages

5. When setting the search, do not distinguish between upper and lower case.

4. nodeJS

1. Official website installation

2. Set environment variables

3. Check version


1. Configure environment variables

Add JAVA_HOME and MAVEN_HOME respectively

And add the following information under Path

2. MAVEN configuration

1. Configure MAVEN local warehouse address

Go to  the D:\development\apache-maven-3.6.3\conf directory

Edit settings.xml 

 Modify localRepository

2. Configure MAVEN central warehouse address

(Alibaba’s mirror source is used here)

  <mirrors>
    <mirror>
      <id>nexus-aliyun</id>
      <mirrorOf>central</mirrorOf>
      <name>Nexus aliyun</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror>
  </mirrors>

 3. Configure the jdk-based version of MAVEN

(Based on jdk-1.8 here)

  <profiles>
    <profile>
      <id>jdk-1.8</id>
      <activation>
        <activeByDefault>true</activeByDefault>
        <jdk>1.8</jdk>
      </activation>
      <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
      </properties>
    </profile>
  </profiles>

3. Configure the idea

1. Configure jdk

In the welcome interface --> click configure --> search for Java Compiler --> set version to the jdk version you use --> click Apply

2. Configure encoding method

(global encoding method, current project encoding method, configuration file encoding method)

In the welcome interface --> click configure --> search for File Encodings --> set Encoding --> click Apply

3. Configure Maven

The Maven settings here are consistent with the previous settings (environment variables, settings.xml, Maven local warehouse address)

In the welcome interface --> click configure --> search Maven --> set Maven --> click Apply

4. Automatically import and delete jar packages

In the welcome interface -> click configure -> search for Auto Import -> check -> click Apply

5. When setting the search, do not distinguish between upper and lower case.

(You can choose to set it up or not)

In the welcome interface --> click configure --> search for Code Completion --> uncheck --> click Apply

4. nodeJS

1. Official website installation

Official website https://nodejs.org/en/ icon-default.png?t=M276https://nodejs.org/en/Choose a long-term supported version to install

2. Set environment variables

Add the installation path of nodeJS in Path

3. Check version

Enter node -v in the terminal

 

Guess you like

Origin blog.csdn.net/m0_47233175/article/details/123473578