ShankPossible
ShankPossible

Reputation: 507

Does Spring 3.0.x support Java 8? In Spring Starter I found sourceCompatibility = '17' default for 3.0.x and above

I was trying to create a Spring Boot 3.0.5 application, along with Java 8 in Spring Starter. Screenshot shared below

Spring Starter page

Post which I checked the Explore button which helps in identifying what code will look like.

However, I found

sourceCompatibility = '17'

I did not expect that as I had selected Java 8 in above screen. Am I missing something here?

Explore window

Upvotes: 6

Views: 17594

Answers (3)

HaRi
HaRi

Reputation: 41

Spring Boot 3.X requires Java 17 as a minimum version. To use Java 8, you’ll need to use Spring Boot 2.X version.

Try this version 2.7.18.

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.7.18</version>
    <relativePath/>
</parent>

Upvotes: 4

JP Park
JP Park

Reputation: 19

Spring boot 3 is required Java 17.
You have to use Java 17 if you are going to do with Spring boot 3.

Upvotes: 0

M. Deinum
M. Deinum

Reputation: 125292

No it doesn't. As Spring Boot 3 requires Java 17 or up (as clearly stated in the documentation).

Upvotes: 9

Related Questions