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.