Java compiler level does not match 1.项目的jdk设置成1.7 2.进入 windows---proferences---java--compiler设置编译出来的文件使用的格式是 1.7版本的