Ⅰ.spring Boot简介与环境搭建


1. Spring Boot简介  

  ● 简化Spring应用开发的一个框架;
  ● 整个Spring技术栈的一个大整合;
  ● J2EE开发的一站式解决方案;


2. 使用的环境

  ● java version “1.8.0_221”
  ● Apache Maven 3.3.9
  ● IntelliJ IDEA 2017.2.2 x64
  ● SpringBoot 1.5.9. RELEASE


3. Maven设置

 给maven 的settings.xml配置文件的profiles标签添加设置语句,将其指向jak-1.8。

1
2
3
4
5
6
7
8
9
10
11
12
13
  <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>
</profiles>

4. IDEA设置

将Maven配置进去IDEA中

  1.在初始页的Configure中选取Settings选项
  2.设置如图所示