idea编辑器无法识别jdk

File-->Invalidate Caches / Restart...-->Invalidate and Restart

然后就可以了

原文地址:https://www.cnblogs.com/qiumingcheng/p/9207433.html