[springboot] Spring officially abandoned Java 8! How to create a java8 project with a new idea

Solve the idea to at least create a jdk17 project

question

Idea can only create at least jdk17 now, but can't create java8?

I originally thought it was a bug caused by the IDEA version update, but I didn't pay much attention to it at first.

It wasn’t until I initialized the project today that I discovered: Damn it, Java 8 is really gone? !

To be more specific, it should be that when using IDEA's built-in Spring Initializr to create a new Spring Boot project, there is no option for Java 8, only version >= 17 is left.

Insert image description here

solve

I searched online and it turns out that this is because Spring Boot officially no longer supports the 2.x version of Spring Boot, and will devote all its efforts to maintaining 3.x; and Spring Boot 3.x has the minimum requirement for the JDK version. It’s 17!
Insert image description here
That is, do not use the officially provided Spring Initializr to initialize the project. We can use the scaffolding image provided by Alibaba Cloud (https://start.aliyun.com/) and use Java happily. 8~

Just change the Server URL in IDEA:https://start.aliyun.com/
Insert image description here

おすすめ

転載: blog.csdn.net/imbzz/article/details/134691177