7、srpingboot改变JDK版本

在pom.xml中加上

<plugin>
   <artifactId>maven-compiler-plugin</artifactId>
   <configuration>
      <source>1.8</source>
      <target>1.8</target>
   </configuration>
</plugin>

就可以指定JDK版本了

原文地址:https://www.cnblogs.com/gudulijia/p/6733979.html