在pom.xml中加上

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

就可以指定JDK版本了

相关文章:

  • 2021-08-07
  • 2021-10-08
  • 2021-09-27
  • 2021-12-24
  • 2021-12-13
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2022-01-05
  • 2021-08-17
  • 2021-11-15
  • 2021-10-14
  • 2021-11-18
  • 2021-11-22
相关资源
相似解决方案