web/⬅️Back

[SpringBoot] A problem occurred configuring root project.error

inthyes 2023. 9. 6. 01:20
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:

main함수를 run시킬 때 이런 에러가 난다면 자바와 스프링부트 버전 충돌로 인한 것이기 때문에

자바 버전 17 && 스프링부트 버전 3.XX, 혹은 자바 버전 11 && 스프링부트 버전 2.XX로 통일 시킨 후 프로젝트를 재생성한 후 run시키면 해결할 수 있다.

 

다시 run했을 때 이렇게 뜨면 성공이다.