项目构建

在maven或gradle项目中指定java版本号

To use a different Java version for your projects, please specify it in build scripts.
For example, if you want to use Java 8, add below lines
In pom.xml of a Maven project:

1
2
3
4
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

In build.gradle of a Gradle project:

1
2
sourceCompatibility = 1.8
targetCompatibility = 1.8
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2022-2023 ligongzhao
  • 访问人数: | 浏览次数:

请我喝杯咖啡吧~

支付宝
微信