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