IntelliJ IDEA创建Spring工程报错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.
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.
To download additional SDKs, click the Project SDK drop-down.
问题原因:
电脑本地安装的JDK版本与IDEA创建Spring工程时默认的JDK版本17不一致,调整为本地版本8即可。
解决方法:
再次点击创建工程就不会再报错啦!
如果文章对你有所帮助的话,请点个推荐或者关注吧。也希望你能够养成分享的习惯,从而去帮助其他人。