1. 错误说明
首先贴上错误截图
原因是Maven Compiler 插件默认会加 -source 1.5 及 -target 1.5 参数来编译 当我们使用1.8 中的lambda 表达式时需要将source 版本调高
2. 解决办法
在pom.xml中增加如下配置:
1 | <plugin> |
首先贴上错误截图
原因是Maven Compiler 插件默认会加 -source 1.5 及 -target 1.5 参数来编译 当我们使用1.8 中的lambda 表达式时需要将source 版本调高
在pom.xml中增加如下配置:
1 | <plugin> |