'' operator is not allowed for source level below 1.7

这是eclipse的编译环境与项目的要求不对应造成的

右键项目properties--Java compiler--勾选Enable project  specific  settings--Compiler compliance level--选择1.7--OK

猜你喜欢

转载自blog.csdn.net/atongmu2017/article/details/84553208