Today encountered this problem in running maven project. So I follow the recommendations given system. Modify the language level.
Then not being given a lambda expression, happy about. Then run the code, the following error.
Later found a solution in the strength of Baidu. Click the file-settings and then the following screen appears after searching java compiler.
Plotted can see the red version number is not consistent with the java version of the changes, and then modify the run, perfect.
Reference blog: