maven:不再支持源选项 5。请使用 6 或更高版本。

解决办法:

在pom.xml中添加maven的配置

image

<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

请根据自己的JDK版本设置。

原文地址:https://www.cnblogs.com/huiy/p/11751858.html