스프링 에러 java.lang.ClassNotFoundException: org.springframework...
스프링 에러 java.lang.ClassNotFoundException: org.springframework...
스프링 에러java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
컴퓨터 사용계정을 몇일전에 기본으로 변경했어요.
그랬더니 프로젝트 실행할려니 여러문제를 겪게 되었는데요.
기존 작성한 프로젝트를 열었어요. 메이븐을 업데이트 했어요.
Maven -> Update Project
프로젝트를 실행하니 에러가 발생합니다.
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
구글검색을 하니까 문제 해결법이 나왔어요.
Deployment Assembly
프로젝트 설정에서 Deployment Assembly에 Maven Dependencies를 추가해야 합니다.
add버턴을 눌러주세요.
NEW Assembly Directive
java build path entries를 눌러주세요.
NEW Assembly Directive
Maven Dependencies 선택하고 Finish 를 눌러주세요.
Deployment Assembly
Maven Dependencies 가 추가된 것을 확인할수 있습니다.
닫고 다시 실행을 해보세요.
저는 추가로
Lambda expressions are allowed only at source level 1.8 or above
이게 뜨더라구요. 아.. 자바 버전 1.8로 설정했어요.
Java Compiler
저장하고 실행하니 다시 작동했어요.
참고 사이트는 아래 사이트입니다.
https://jaeu0608.tistory.com/155
수고하세요.
from http://s00741.tistory.com/192 by ccl(A) rewrite - 2020-03-11 19:54:23
댓글
댓글 쓰기