Why IDEA Blocks Java 8 Spring Boot Projects—and How to Bypass It
IDEA no longer offers Java 8 when creating Spring Boot projects because it relies on Spring Initializr, which now only supports Spring Boot 3.x and Java 17+, but you can still generate Java 8‑compatible projects by switching to alternative starter services like Alibaba Cloud’s start.aliyun.com.
Why IntelliJ IDEA cannot create Java 8 Spring Boot projects
IDEA generates a Spring Boot project by calling the Spring Initializr service at https://start.spring.io. Since Spring Boot 3.0 the official policy requires Java 17 as the minimum JDK, and the Initializr therefore only offers Spring Boot 3.x and Java 17+ options. IDEA simply reflects the options returned by the service, so Java 8 is not shown.
Creating a Java 8 Spring Boot project
If a project must target Java 8 (which implies Spring Boot 2.x), you can point IDEA to an alternative Initializr that still provides older versions. Alibaba Cloud offers such a service at https://start.aliyun.com.
Open Settings/Preferences → Tools → Spring Initializr in IntelliJ IDEA.
Replace the default URL https://start.spring.io with https://start.aliyun.com.
Apply the changes and reopen the “New Project” wizard. The JDK selector will now include Java 8 and the Spring Boot selector will list 2.x releases.
Note: the Alibaba Cloud starter is not actively maintained; its latest supported Spring Boot version is 3.0.2, and it may lack newer bug‑fix releases.
Why prefer Java 17 and Spring Boot 3 for new projects
GraalVM native image support : Enables faster startup and lower memory consumption, useful for cloud‑native and serverless deployments.
ZGC garbage collector (JDK 17) : Provides near‑zero pause times; some organizations report up to 90 % reduction in GC latency after migration.
Improved HTTP client : Spring Boot 3 uses a more performant default client.
New Java language features (records, sealed classes, switch expressions, text blocks, etc.) that simplify code and improve safety.
Ecosystem alignment : Major projects such as Alibaba Nacos 3.0 have already moved to JDK 17 and Spring Boot 3.4.1, indicating that older versions will face compatibility challenges.
Summary
IDEA hides Java 8 because the default Spring Initializr ( start.spring.io) only supports Spring Boot 3+ (Java 17+).
To generate a Java 8‑based Spring Boot 2.x project, replace the Initializr URL with https://start.aliyun.com in IDEA’s settings.
For new projects, adopt at least Java 17 and Spring Boot 3+ to benefit from performance improvements, new language features, and future‑proof ecosystem compatibility.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Java Tech Enthusiast
Sharing computer programming language knowledge, focusing on Java fundamentals, data structures, related tools, Spring Cloud, IntelliJ IDEA... Book giveaways, red‑packet rewards and other perks await!
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
