当IDEA中显示如下错误时,Usage of API documented as @since 1.8+ more… (Ctrl+F1) ,Lambda expressions are not supported at language level '5'。
且项目中的JDK 为1.8以上版本时,其解决办法为:
File →Project Structure →Project Settings → Modules →Module名称 → Sources →Language Level,将此level设置为8以上即可。