Eclipse runtime configuration SpringBoot (Spring Tool Suite)

installation

View Ecplise IDE version

https://www.eclipse.org/downloads/

Help -> About Eclipse IDE
Here Insert Picture Description

Just download the Spring Tool Suite installation package

https://spring.io/tools3/sts/all
Here Insert Picture Description

Spring Tool Suite installation tool in Eclispe

Help -> Install New Software
Here Insert Picture DescriptionHere Insert Picture Descriptionafter selection module need be installed, the installation is successful as shown below

Here Insert Picture Description

Install the JDK

https://www.oracle.com/technetwork/java/javase/downloads/index.html

Placed JAVA_HOME

  • New System Variable
    Here Insert Picture Description
  • Configure the system variable Path
    Here Insert Picture Description

Installation Verification
Here Insert Picture Description

MAVEN installation

https://maven.apache.org/download.cgi

Configuration M2_HOME

  • New System Variable
    Here Insert Picture Description
  • Configure the system variable Path
    Here Insert Picture Description

Installation Verification
Here Insert Picture Description

Run Spring Boot

https://spring.io/guides/gs/spring-boot/

Installation maven in Eclipse

Window -> the Preferences -> Maven -> Installations
Here Insert Picture Description
the Add New Maven runtime environment
Here Insert Picture Description
select new maven, click Apply
Here Insert Picture Description
to configure the local warehouse, modify settings.xml
C:\Program Files\Java\apache-maven-3.6.2\conf
configuration repository path
Here Insert Picture DescriptionHere Insert Picture Description

Generating a test packet Spring Boot

https://start.spring.io/

Here Insert Picture Description
Click the Generate, generating a compressed package called demo of the extract to the corresponding directory
Here Insert Picture Description

Run Spring Boot in Spring Tool Suite

Open the Eclipse IDE, select Import projects, Maven -> Existing Maven Projects
Here Insert Picture Description
selected demo package
Here Insert Picture Description
demo package has been introduced
Here Insert Picture Description
in the right demo program, select Run As -> Maven build
Here Insert Picture Descriptionselect Run As -> Spring Boot App
Here Insert Picture Description

Published 72 original articles · won praise 66 · Views 150,000 +

Guess you like

Origin blog.csdn.net/miaodichiyou/article/details/101771960