idea 报错: Language level is invalid or missing in pom.xml. Current project JDK is 17.
确定添加了jdk21
File -> Project Structure -> Platform Setting -> SDKs -> + 指定jdk21目录指定项目默认jdk为jdk21
File -> Project Structure -> Project Settings -> Project -> Project SDK -> 选择jdk21(可选) 指定项目语言级别
File -> Project Structure -> Project Settings -> Project -> Project language level -> SDK default