Reputation: 507
I was trying to create a Spring Boot 3.0.5 application, along with Java 8 in Spring Starter. Screenshot shared below
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?
Upvotes: 6
Views: 17594
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
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
Reputation: 125292
No it doesn't. As Spring Boot 3 requires Java 17 or up (as clearly stated in the documentation).
Upvotes: 9