IT/Spring-JSP&Servlet
[STS] 에러 : The import org.junit cannot be resolved
_하늘여우_
2020. 1. 5. 17:01
참고: 코드로 배우는 스프링 웹 프로젝트
예제소스명: MySQLConnectionTest
에러현상: 하기 소스 import 시 "The import org.junit cannot be resolved" 발생
조치방법: junit library 추가
import org.junit.Test ;
조치상세:
1. 프로젝트 우클릭 > Build Path > Configure Build Path
2. Java Build Path > Libraries > Add Library
3. JUnit 선택 > next > 알맞은 junit버전 선택 (ex. JUnit4) > finish > Apply and Close
남기는말:
- 책이 좀 더 친절했으면.... -_-;; (아무리 실무중심이라해도.. ㅠㅠ)