[STS] Spring maven project import 후 에러가 날 때

1. 발생 문제

GitHub Desktop을 이용하여 프로젝트를 Clone 한 뒤, STS에서 import했을 때 실행하면 에러가 나는 경우가 있다.
자바 버전을 맞춰주고, Dependencies 설정을 해주면 해결된다.

2. 문제 해결

  1. 프로젝트 오른쪽 클릭 - Properties

  2. Java Build Path - Libraries - JRE System Library - Edit import3

  3. Java Compiler - Compiler compliance level 도 맞춰준다. import4

  4. DeployAssembly - Add - Java Build Path Entries - Maven Dependencies - Finish import1

  5. Spring - Dependency Management - Automatically update dependencies from Maven pom.xml import2

카테고리:

업데이트: