环境约束

jdk1.8:Spring Boot 推荐jdk1.7及以上;java version “1.8.0_112”

maven3.x:maven 3.3以上版本;Apache Maven 3.3.9

IntelliJIDEA2017:IntelliJ IDEA 2017.2.2 x64、STS

SpringBoot 1.5.9.RELEASE:1.5.9;
1、MAVEN设置;

给maven 的settings.xml配置文件的profiles标签添加

<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、STS设置
Spring Boot-环境准备

相关文章: