Make Be BackEnd

[SpringBoot] JDK 11 , spring boot 2.x 버전 본문

Error

[SpringBoot] JDK 11 , spring boot 2.x 버전

Initsave 2023. 9. 18. 13:26

[ERROR]

더보기

 A problem occurred configuring root project 'hello-spring'.
Could not resolve all files for configuration ':classpath'.
Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.2.
Required by:
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.2
No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.2 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.6' but:
...

에러난 이유는 Java 버전과 Spring boot 버전에 따른 지원 확인 제대로 안한것.......

 

Java 버전 11인 경우 Spring boot 버전은 3.x 이하만 지원

 

 

 

 

[Java 17 이상 , SpringBoot 3.x 이상]

 

 

[Java 11  , SpringBoot 2.x 지원]