Creation and operation of spring boot project (picture and text)
summary
I haven't played spring boot yet. Now more and more companies are using it and have to learn. This is the beginning of spring boot. It briefly introduces how to create a spring boot project and run it.
Environmental preparation
1、JDK 1.8 2、IDEA
Project for creating spring boot
New a project
Select spring initializr
Select jdk1 After 8, click next.
Fill in group and artifact
What I write here is
At the same time, Maven is selected to build the program. Click next after selection.
Select the version and components of spring boot
For the convenience of demonstration, check the web component first. Click next after selection.
Modify project name
The project name used in this article is
After modification, click finish.
Run the spring boot program
After the above steps, spring boot generates a startup class called studyapplication for us by default. We write a hello program based on this.
Run the main method directly in the idea to start the spring boot program. The access path is as follows:
The output results are as follows
You can see from the startup log that the default port number is 8080.
At this point, a simple spring boot program is successfully built.
The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.