문제
프로젝트를 깃에서 연동시키고 노트북에서 수행하려던 중, 에러가 발생했다.
가장 먼저 component-scan.xml에 들어가서 오류 상황을 확인했다.
Error occured processing XML 'org/springframework/web/bind/annotation/RequestMapping has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions
up to 55.0'. See Error Log for more details
원인
Java에서 외부 프로젝트를 Import 할 때, Library version이 맞지 않을 경우 발생하는 오류이다.
해결책
Project 폴더에서 Properties 클릭
Java Build Path 선택
기존 JRE System Library / JavaSe-1.8 삭제 후 Add Library
JRE System Library 선택
Execution environment > 리스트 박스에서 본인 환경에 맞는 jre 선택 > Finish > Apply and close
오류가 해결되었다면 JRE System Library 가 추가되고 X표시와 각종 빨간줄이 사라진다.
좋은 정보 얻어갑니다, 감사합니다.