1. Introduction to Spring Boot
A framework for simplifying spring application development;
A large integration of the entire spring technology stack;
A one-stop solution for the development of the Java EE;
2. Micro-Service
MicroServices: Architectural style (service micro)
An application should be a small set of services, which can be exchanged via HTTP;
Single application: All in one
MicroServices: Each functional element is ultimately a software unit that can be independently replaced and upgraded independently;
Refer to the micro-service documentation in detail
3. Environment Preparation
Environmental constraints
–jdk1.8:spring Boot recommended jdk1.7 and above; Java version "1.8.0_102"
–maven3.x:maven 3.3 or later; Apache maven 3.5.3
–intellijidea2017:intellij idea 2018.1.2 x64, STS
–springboot 2.0.4.RELEASE;
1. Maven Settings
Add a profiles tag to Maven's settings.xml configuration file
<Profile>
<Id>jdk-1.8</Id>
<Activation>
<Activebydefault>true</Activebydefault>
<Jdk>1.8</Jdk>
</Activation>
<Properties>
<Maven.compiler.source>1.8</Maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</Properties>
</profile>
2. Idea setting
Spring boot (i)--spring boot starter