- Selected version of Java 17 is not supported by the project SDK ‘1.8’. Either choose a lower version of Java or set a higher version of the SDK.
1、报错描述
Selected version of Java 17 is not supported by the project SDK ‘1.8’. Either choose a lower version of Java or set a higher version of the SDK. To download additional SDKs, click the JDK drop-down.
2、问题原因
电脑本地安装的JDK版本与IDEA创建Spring工程时默认的JDK版本17不一致
3、解决办法
1).修改Server URL
替换spring boot项目初始化源地址,创建springboot项目时,点击server URL右侧的⚙,将https://start.spring.io/ 或者 http://start.springboot.io/ 替换为 https://start.aliyun.com/ 即可
https://start.aliyun.com/
2).选择JDK8选项
最后点击确定,即可创建成功。