方式一
<!-- 编译时指定jdk版本-->
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
方式二
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>

相关文章:

  • 2022-01-21
  • 2021-09-30
  • 2021-09-17
  • 2021-10-01
  • 2021-05-10
  • 2021-07-23
  • 2021-07-28
  • 2021-07-21
猜你喜欢
  • 2021-06-27
  • 2022-12-23
  • 2021-11-30
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案