idea 報(bào)錯(cuò): Language level is invalid or missing in pom.xml. Current project JDK is 17.
確定添加了jdk21
File -> Project Structure -> Platform Setting -> SDKs -> + 指定jdk21目錄指定項(xiàng)目默認(rèn)jdk為jdk21
File -> Project Structure -> Project Settings -> Project -> Project SDK -> 選擇jdk21(可選) 指定項(xiàng)目語言級(jí)別
File -> Project Structure -> Project Settings -> Project -> Project language level -> SDK default