错误信息:The compiler compliance specified is 1.5 but a JRE 1.8 is used解决办法:右击项目>选择Properties选择Java Compiler,点击Enable project specific settings,修改Compiler compliance level为1.8