[Spring] java.lang.NoClassDefFoundError: org.springframework.core.NestedIOException 해결

2025. 1. 22. 09:07·백엔드/spring

 

 

스프링 입문강의 섹션7 부분 강의 실습을 진행하던 중 계속해서 이 에러가 발생 했다.

 

 

에러가 발생한 이유는

 

dependencies에 

 

implementation 'org.springframework:spring-context:5.3.30'

 

 

이 코드 때문이었다.

 

버전을 직접 지정을 하다보니 이 버전과 내가 실제 사용하고 있는 버전이 충돌을 하면서 문제가 발생했던 것이다.

 

그래서 이 코드를 삭제하고 Spring Boot가 제공하는 spring-boot-starter들만 사용하였다.

 

 

그리고 dependencies를 수정하고서

 

./gradlew clean --refresh-dependencies
./gradlew build

 

 

 

캐시를 삭제하고 다시 빌드하는 과정까지 해준 후 재실행 해보면 오류가 사라진 것을 확인할 수 있다.

'백엔드 > spring' 카테고리의 다른 글

Java 프로그래밍 기초2  (4) 2025.08.08
Java 프로그래밍 기초  (4) 2025.08.07
asserThat 사용 안됨 문제 해결 (import해도 안되는 경우)  (0) 2025.03.30
[Intelli J 에러 해결] Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.  (1) 2024.12.10
[spring] intellij 로 새 프로젝트 시작시 Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle 오류 문구 해결  (0) 2024.07.31
'백엔드/spring' 카테고리의 다른 글
  • Java 프로그래밍 기초
  • asserThat 사용 안됨 문제 해결 (import해도 안되는 경우)
  • [Intelli J 에러 해결] Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
  • [spring] intellij 로 새 프로젝트 시작시 Unknown host 'root'.Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle 오류 문구 해결
hiwon
hiwon
천천히 굴러가는 코딩일기
  • hiwon
    하이원의 코딩 일기
    hiwon
  • 전체
    오늘
    어제
    • 분류 전체보기 (83)
      • 프론트엔드 (0)
        • react (0)
      • 백엔드 (13)
        • node.js (1)
        • spring (6)
      • 코딩테스트 (57)
        • 백준 (41)
        • 프로그래머스 (15)
      • 프로디지털아카데미 (9)
        • 클라우드 (1)
        • JavaScript (1)
      • github (1)
      • AWS (2)
      • Infra (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    spring
    알파코
    프로그래머스
    백준
    백트래킹
    코테
    알고리즘
    MSA
    그리디
    UnionFind
    프로디지털아카데미
    IT기획
    깃허브
    Java
    파이썬
    K디지털트레이닝
    EC2
    AWS
    다익스트라
    백엔드
    코딩테스트
    kdt교육
    알파코캠퍼스
    프디아
    투포인터
    python
    github
    신한투자증권
    BFS
    bastion host
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
hiwon
[Spring] java.lang.NoClassDefFoundError: org.springframework.core.NestedIOException 해결
상단으로

티스토리툴바