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

huangapple go评论81阅读模式
英文:

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

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

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?

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

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

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?

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

答案1

得分: 5

不,它不需要。因为Spring Boot 3需要Java 17或更高版本(正如文档中明确说明的)。

英文:

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

答案2

得分: 0

Spring Boot 3 需要 Java 17。如果你要使用 Spring Boot 3,必须使用 Java 17。

英文:

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

huangapple
  • 本文由 发表于 2023年4月11日 14:57:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75983170.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定