错误如下
检查下面几个地方设置是否一致...
1.Project Structure下(File->Project Structure...)
Sources选项卡->Languate level
Dependencies选项卡->Module SDK
2.Settings下找到Java Compiler
里边有两个设置Project bytecode version,Target bytecode version
3.Settings下找到Maven Runner 里边有JRE