원인 : DB(MySQL)을 Spring과 연동하면서 Test Class를 작성하는 와중에 코드상에서 나타나는 JRE 버전이 맞지 않는 현상
조치 : pom.xml파일상에서 <source>,<target>부분 수정(1.6 -> 1.8로 수정)
- 프로젝트에서 우클릭 -> Properties 선택한다.
- Complier에서 Use compliance from.... 부분 체크박스 선택해서 체크 해제 후 compliance level version 1.8로 변경
- Project 우클릭 -> Maven -> Update Project 선택하여 Project를 Update한다.
'Programing > Spring' 카테고리의 다른 글
[Spring] 스프링 특징 (0) | 2021.04.22 |
---|---|
[Spring] 프로젝트 구조 (0) | 2021.04.21 |
[Spring] web.xml 에러(error) 현상 (0) | 2021.04.21 |
[Spring] 개발 환경 세팅하기 (0) | 2021.04.20 |