In a few simple steps, create a new spring boot project in eclipse:
1. Install the STS plugin in eclipse:
Help, Eclipse Marketplace ...
Search or select the "Popular" tab, select the Spring Tool Suite (STS) for Eclipse plug-in, install:
2, New Project ...
Find the Spring catalog and select Spring Starter project,next
3, fill in the various information related to the project, and then next:
4. Select the desired dependency, then next:
5, Next, then Finsh, the new project is created, each directory is as follows:
6, right-click the main method in Myspringbootapplication, Run as--Spring boot App, the project can be started.
Package Com.xjj;import Org.springframework.boot.springapplication;import Org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplicationpublic class myspringbootapplication {public static void main (string[] args) {Springapplication.run (myspringbootapplication.class , args);}}
A tomcat,8080 port listener is started by default because the Web dependency is selected
7. Rename Application.properties to Application.yml (personal preference), modify Tomcat's boot port:
Server: port:8081
Create a new spring boot project in eclipse