1.报错描述
Selected version of java 17 is not supported by the projectSDk ‘1.8’, Either choose a lower version of Java or set ahigher version of the SDk.
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/