Experience the beginning of the project to build SpringBoot

Just start! ! ! ! ! !

IDEA is constructed SpringBoot (2.1.3) JDK1.8 Maven3.5.4

first step

 

The second step

 

Click next

third step

 

 

Group: Package name Artifact: Project name the rest of the default can click next

the fourth step

 

 

 Just check Sping Web can be, top right, select the version used SpringBoot ------ careful not to choose SNAPSHOT unstable.

Then click finish, a SpringBoot built better.

the fifth step

 

 SpringBoot changes in the pom.xml version 2.1.3

 

Right next project re-import

 

Step Six

 

Run SpringBoot, you can click on the green triangle

 

 The results are as follows:

 

 Then open localhost: 8080 will appear

 

 

At this point nothing so there comes the official page of our project

 

Step Seven

So that the project show something

 

Run the project again, enter localhost: 8080 / hello shown below:

 

The first success of the project to build a SpringBoot

Guess you like

Origin www.cnblogs.com/haq123/p/12155740.html