当前位置:   article > 正文

【开发问题】IDEA新建Spring Boot项目遇到的问题:Selected version of Java 17 is not supported by the project SDK ‘1.8

selected version of java 17 is not supported by the project sdk '1.8'. eithe

目录

问题描述

问题原因

解决方案

方案一

 方案二


问题描述

IntelliJ IDEA创建Spring工程时报错,报错信息: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.

问题原因

电脑本地安装的JDK版本与IDEA创建Spring工程时默认的JDK版本17不一致

正常情况,只需要把创建Spring工程时默认的JDK版本调整为本地版本8即可,但是发现根本没有JDK8选项

解决方案

方案一

替换spring boot项目初始化源地址,创建springboot项目时,点击server URL右侧的⚙,将https://start.spring.io/ 或者 http://start.springboot.io/ 替换为 https://start.aliyun.com/ 即可

 方案二

升级JAVA版本,根据个人所需选择对应版本,JDK安装教程可参考下面这篇博客

博客链接:https://blog.csdn.net/weixin_47698656/article/details/137524808

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/831673
推荐阅读
相关标签
  

闽ICP备14008679号