版本要求
- jdk 1.7及以上 (jdk 1.8)
- maven 3.3及以上 (maven 3.3.9)
- idea 2017/eclipse…(idea 2019)
- spring boot 1.5.9(本案例使用)
maven的设置
给maven的conf下的setting.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>
idea的设置–配置maven