IntelliJ IDEA builds a small Demo of SpringBoot, intellijspringboot

Source: Internet
Author: User
Tags spring initializr

IntelliJ IDEA builds a small Demo of SpringBoot, intellijspringboot

Spring Boot is a new framework provided by the Pivotal team. It is designed to simplify the initial setup and development process of new Spring applications. The framework uses a specific method for configuration, so that developers no longer need to define the configuration of the template. In this way, Spring Boot is committed to becoming a leader in the rapidly developing rapid application development Field. Next we will start 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 selectCreate New Project

② Configure the project and selectSpring Initializr, Select Project SDK1.8Select the default URL without modification. As shown in, and then selectNext

      

③ Continue project configuration

      

This is basically all automatically generated here. A brief introduction is given below:

Name: Project Name

Type: this is built by Maven. Select the first Maven Project.

Packaging: package type, packaged into a Jar file

Java Version: jdk Version. Select 1.8

Language: development Language. Select Java

Group: corresponds to the groupId In the pom file, the unique identifier of the project organization, and the structure of the Java package.

Artifact: corresponds to the artifactId of the pom file, the unique identifier of the project, and the project name.

Version: Project version, corresponding to the Version of the pom File

Description: project description, which corresponds to the Description of the pom file.

Package: Package name

④ Spring Boot version selection. I chose 1.5.2 here. You only need to check the Web. ThenNext

      

⑤ Project name and path. Finish

      

⑥ You can delete the following three irrelevant files, clean the structure

      

7. Final project structure

      

Then we will test Hallo Java and create a new Controller.

      

Welcome come on, Just run. Amount, used to debug...

      

Worker startup success information, port 8080

     

11. When the browser accesses it, return Hallo Java!

      

 

Here, we have completed the setup of a simple 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.