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) { |