警告:The compiler compliance specified is 1.7 but a JRE 1.8 is used
解决:
右键点击项目>Properties>Java Compiler>将Compiler compliance level改为1.8 ,再点击Apply and close