IntelliJ idea builds Springboot's little demo

Source: Internet
Author: User
Tags spring initializr

Start with a brief introduction to spring boot, from the degree of the Encyclopedia: Spring Boot is a new framework provided by the pivotal team, designed to simplify the initial construction and development of new Spring applications. The framework uses a specific approach to configuration, which eliminates the need for developers to define boilerplate configurations. In this way, Spring boot is committed to becoming a leader in the burgeoning field of rapid application development (rapid application development). Below we will begin to enter the Hallo Java process.

1. Tools:

①ide-intellij Idea 14.1.7

②jdk-1.8.0_91

③maven-3.3.9

 

2. Demo creation Process:

① Open Idea and choose Create New Project

② project configuration, select Spring initializr, Project SDK Select 1.8, URL Select default, do not modify. As shown, then select Next

      

③ continuing the project configuration

      

Here basically has been automatically generated, a brief introduction:

Name: Project names

Type: We are built by MAVEN, then select the first Maven Project

Packaging: Package type, packaged as a jar file

Java version:jdk version, select 1.8

Language: Developing languages, choosing Java

Group: GroupID in the pom file, unique identifier of the project organization, corresponding to the structure of the Java package

Artifact: Artifactid of the corresponding POM file, project unique identification, corresponding project name

Version: Versions of the project, corresponding to the pom file

Description: Project description, corresponding to the Description of the pom file

Package: Pack Name

④spring Boot version selection, I chose here 1.5.2, just tick the web under the website and then next

      

⑤ project name and path, finish after completion

      

⑥ can be removed from the following three unrelated files, a clean structure

      

⑦ The final project structure

      

⑧ Next is our Hallo Java test, a new controller

      

⑨come On,just run. Well, the habit of debug ...

      

⑩ Boot success information, port 8080

     

11 under Browser access, return to Hallo java!

      

Here, we have completed a simple demo build.

  

  

IntelliJ idea builds Springboot's little demo

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.