1、maven配置(给maven的settings.xml配置文件的Profiles标签添加如下内容)
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
<value>dev</value>
</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配置,配置maven路径及maven配置文件路径
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201223163305693.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl81MTA3ODI4NQ==,size_16,color_FFFFFF,t_70)
3、SpringBoot项目是以父目录来实现版本控制,我们导包就可以不用写版本号了
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!--