Vscode Build path specifies execution environment JavaSE-1.8. There are no JREs installed i

在vscode中出现环境版本不匹配的问题即Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment. ,个人解决方案Vscode Build path specifies execution environment JavaSE-1.8. There are no JREs installed i

直接把你的版本的JDK导入到工程目录下就可以了