Construction of windows10 Java spring boot development environment

Time:2021-10-12

Environment version configuration

  • Java running environment: JDK1.8; JDK1.16
  • Development tool: Idea
  • Maven

1. Install multi version Java environment

JDK installation

Download address:www.oracle.com/java/technologies/j…

Construction of windows10 Java spring boot development environment

Construction of windows10 Java spring boot development environment

Construction of windows10 Java spring boot development environment

Construction of windows10 Java spring boot development environment

Construction of windows10 Java spring boot development environment

JDK configuration environment variables

  1. clickstart -> set up -> system -> about -> Advanced system settings

Construction of windows10 Java spring boot development environment

Click “environment variables”

  1. Set two subJAVA_HOME

Construction of windows10 Java spring boot development environment

Construction of windows10 Java spring boot development environment

  1. Set a totalJAVA_HOME

    Construction of windows10 Java spring boot development environment

Among themJAVA_HOME_8It corresponds to two childrenJAVA_HOMEVariable name in.

  1. establishCLASSPATH

Construction of windows10 Java spring boot development environment

.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

5. InPathAdd first in

%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

Construction of windows10 Java spring boot development environment

  1. Test for successful installation

    Open CMD input
    java -version

Construction of windows10 Java spring boot development environment

If it is shown in the figure, the installation is successful.

7. Test version switching

modifyJAVA_HOMEVariable values in

Construction of windows10 Java spring boot development environment

closecmdReopen and view againjavaedition

java -version

Construction of windows10 Java spring boot development environment

If the display has changed to1.8.xxxDescription: the version switching is successful

2. Install Maven

  1. Download address:maven.apache.org/download.cgi

Construction of windows10 Java spring boot development environment

After downloading, unzip it to a special storagejavaIn the directory of relevant software, such as my installation directory:

Construction of windows10 Java spring boot development environment

  1. newly buildrepositoryFolder as a local warehouse, I put it inapache-maven-3.6.3Under this directory

Construction of windows10 Java spring boot development environment

  1. modifyconfDirectorysettings.xmlfile

    3.1 set the new local warehouse Path in the previous step
    <localRepository>E:/javaStudy/java/apache-maven-3.6.3/repository</localRepository>

    3.2 setting domesticMavenMirror, willmirrorThe content in the node is modified as follows

    <mirror>
     <id>huaweicloud</id>
     <mirrorOf>*</mirrorOf>
     <url>https://repo.huaweicloud.com/repository/maven/</url>
    </mirror>
  2. Configure environment variables

    newly buildMAVEN_HOME=E:\javaStudy\java\apache-maven-3.6.3

Construction of windows10 Java spring boot development environment

stayPathMedium configuration%MAVEN_HOME%\bin;

Construction of windows10 Java spring boot development environment

  1. Verify that the installation was successful

    closecmdReopen after, enter:
    mvn -version

    Construction of windows10 Java spring boot development environment

    The display is as shown in the figure above, indicating that the installation is successful

  2. stayIDEAMedium configurationmaven

    Open in turnfile -> settings, configure according to the red box identification

Construction of windows10 Java spring boot development environment

This work adoptsCC agreement, reprint must indicate the author and the link to this article

www.haowuliaoa.com

Recommended Today

The selector returned by ngrx store createselector performs one-step debugging of fetching logic

Test source code: import { Component } from ‘@angular/core’; import { createSelector } from ‘@ngrx/store’; export interface State { counter1: number; counter2: number; } export const selectCounter1 = (state: State) => state.counter1; export const selectCounter2 = (state: State) => state.counter2; export const selectTotal = createSelector( selectCounter1, selectCounter2, (counter1, counter2) => counter1 + counter2 ); // […]