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했을 때 이렇게 뜨면 성공이다.
'web > ⬅️Back' 카테고리의 다른 글
[SpringBoot] Invalid Gradle JDK configuration found. error (0) | 2023.09.06 |
---|---|
[Linux] 스왑 메모리 사용하기 (0) | 2023.08.12 |
openAI API 사용하기(feat. google colab) (0) | 2023.07.08 |