英文:
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
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?
英文:
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?
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论