本文内容来自尚硅谷
1所需工具的版本
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;
2MAVEN设置;
给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>
3IDEA设置
整合maven进来;
扫描二维码关注公众号,回复:
4021216 查看本文章