IT/Java, Spring

[eclipse] 오류 해결 the superclass javax.servlet.http.httpservlet was not found on the java build path

북더기 2021. 4. 5. 21:05
에러 메세지 : JSP Problem, javax.servlet.http.HttpServlet was not found on the java build path

 

초기 프로젝트 import 시 단골 에러지요... 전공 수업, 개인 프로젝트 진행하며 수도없이 프로젝트 import 하며 자주 겪었던 오류입니다.

 

해결방법 1 ) 프로젝트명 우클릭 - properties(또는 alt-enter) - Project Facets - Runtimes - Tomcat Server 체크 후 apply

해결방법 2 ) 프로젝트 우클릭 - properties(또는 alt-enter) - Java Build Path(우클릭 후 Build Path-Configure Build Path로 들어가셔도 됩니다.) - Tomcat 체크 후 종료, Apply and Close