File -> Project Structure -> Project Settings>>Project>Project language 应与JDK吻合
File -> Project Structure -> Project Settings>>Modules>Modules language
File -> Settings -> Compiler -> Java Compiler -> Target bytecode version
原文地址:https://www.cnblogs.com/dragonyl/p/11109339.html
时间: 2024-10-01 04:27:42