Create a new spring boot project in eclipse

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.