A, Springboot Profile
Springboot Spring framework developed to simplify the application, the configuration is greater than the convention, from simple to complicated. From the past "Spring family barrel era," the official transition to "Time Spring boot, J2EE-stop solution", it can be combined to provide a distributed SpringCloud overall solution.
Boils down to this: a framework to simplify the development of Spring applications, large integration of the entire technology stack Spring
From this diagram can be seen in the official website of the distributed overall solution provided by Spring, Springboot used to build applications, SpringCloud processing applications for interconnecting intermodulation, SpringCloud data stream used for calculation batch.
II. Preparing for the environment
-jdk 1.8 above, -maven 3.5 above, -Intellij IDEA2018, -Springboot 1.5.15
III. Case
First, start with SpringBoot to implement a simple request, the browser sends a hello request, the application returns a Hello Word !!!
1. Open idea, a new SpringInitializr
Case
pom.xml dependence
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 引入springboot-mybatis的依赖 -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.32</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>