Maven project tip: the source value of 1.5 is outdated and will be deleted in future releases
•
Java
This is because the Maven project compiles using jdk1.0 by default 5。 We can make the following configuration in the POM file to change.
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码