Springboot---Hello World
Learn springboot, we are accustomed to from Hello World, the previous article is mainly through a small case, to understand the overall operation of Springboot ideas. There is a macroscopic understanding of springboot. This begins to really learn Springboot
Hello World
1. pom.xml file
1.1. Set Spring Boot's parent
<Parent> <groupId>Org.springframework.boot</groupId> <Artifactid>Spring-boot-starter-parent</Artifactid> <version>1.5.2.RELEASE</version> </Parent>
Description: The Spring boot project must have the parent set to spring Boot's parent, which contains a large number of default configurations, which greatly simplifies our development.
1.2 Importing Spring boot Web support
< Dependency > < groupId >org.springframework.boot</groupId> < Artifactid>spring-boot-starter-web</artifactid>
</ Dependency >
1.3 Adding a Spring boot plugin
<plugin > < groupId >org.springframework.boot</groupId> < Artifactid>spring-boot-maven-plugin</artifactid> </plugin>
Springboot (2)---hello Word