The import 패키지명.클래스명 collides with another import statement

The import 패키지명.클래스명 collides with another import statement

jsp 작성시 The import collides with another import statement 오류가 나는 경우.

예를 들어 The import com.test.MyTestUtil collides with another import statement 이런 식의 오류가 나는 경우.

“collides”는 충돌하다 라는 뜻이므로, 해당 클래스가 이미 임포트 되어있다고 볼 수 있다.

즉 jsp 상단 어딘가에 <%@page import=”com.test.MyTestUtil”%> 이 들어있거나,

인크루드(include)된 jsp 페이지 안에 <%@page import=”com.test.MyTestUtil”%> 이 들어있을 것이다.

임포트 라인을 1개만 남기고 나머지를 제거하면 오류가 해결된다.

참고페이지 : https://sabjili.tistory.com/entry/The-import-collides-with-another-import-statement-%EB%9D%BC%EB%8A%94-%EC%97%90%EB%9F%AC