在pom.xml文件中添加

<properties>
  <java.version>11</java.version>
  <maven.compiler.source>11</maven.compiler.source> 
  <maven.compiler.target>11</maven.compiler.target>
</properties>

顺带一提,用骨架新建的maven项目jre版本警告问题也可以用这种方式解决。

相关文章:

  • 2021-08-28
  • 2021-12-14
  • 2022-12-23
  • 2021-10-15
  • 2021-08-19
  • 2021-10-01
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2022-02-24
  • 2022-02-12
  • 2021-12-08
  • 2021-10-31
  • 2022-12-23
  • 2021-06-26
相关资源
相似解决方案