idea运行代码提示:源发行版8需要目标发行版1.8 解决方案如下:保证以下三处版本一致 Project Structure > Project Project Structure > Modules > Language level File > Settings > Build,Execution,Deployment > Compiler > Java Compiler