Warning:java: 源值1.5已过时, 将在未来所有发行版中删除

在POM文件中添加属性值:

<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
</properties>
我猜测可能是maven默认用的是jdk1.5,而我在IDEA中设置的jdk为1.8

猜你喜欢

转载自blog.csdn.net/DanielAnton/article/details/81034112