Detailed eclipse Create the first spring boot project __spring-boot

Source: Internet
Author: User

This article describes in detail the creation of the first project based on Eclipse (eclipse-jee-neon-3-win32-x86_64.zip) +spring boot creation.


Spring boot, a new framework provided by the pivotal team, is designed to simplify the initial set-up and development process of new spring applications. The framework is configured in a specific way so that developers no longer need to define a boilerplate configuration. In this way, boot is committed to becoming a leader in the booming field of rapid application development (rapid application development). That is, spring boot is designed to simplify spring development, and the main idea is to reduce the introduction of spring so that beginners can run the program under the spring frame as quickly as possible.

Today we're going to create the first project based on the Eclipse (eclipse-jee-neon-3-win32-x86_64.zip) +spring boot.

first, the installation of STS Plug-ins

To create a project in Eclipse using spring boot, you must first install the STS (Spring Tool Suite (STS) for Eclipse) and choose to install online if the speed is available, or it is recommended that you choose to install offline.

1. Online Installation

Help-> Eclipse Marketplace

Search or select the "Popular" tab, select the Spring Tool Suite (STS) for Eclipse plug-in, install:

2. Offline Installation

(1) First download the STS plug-in, download the address: https://spring.io/tools/sts

(2) Help->install New Software

(3) Click "Add->archive ...", then select the STS plugin just downloaded, and give the plugin a name, click "OK" on the line.

(4) Select several components with the end of the IDE installation can be, if the waiting event for a long time, you can install one.

(5) See if the installation is successful

Window->show View->other to see if there is a spring component, there is a sign that we have successfully installed.

Second, create the Spring boot project

(1) Create the project, select Spring Starter Project. Fill in the various information related to the project and then next:

(2) Select the dependency you want, and then next:

(3) Finally "Finish", began to download the jar package, the process takes a long time.

third, the operation of the project

(1) The Main method in the right key demoapplication, Run as-> Spring boot App, the project can be started.

1 2 3 4 5 6 7 8 9 package com.example    Import org.s Pringframework.boot.SpringApplication; Import org.springframework.boot.autoconfigure.SpringBootApplication;    @SpringBootApplication public class DemoApplication {     public static void Main (string[] Ar GS) {  
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.