1. 程式人生 > >今天下午匯入maven專案後,編譯前出現如下javax.servlet.http.HttpServletRequest

今天下午匯入maven專案後,編譯前出現如下javax.servlet.http.HttpServletRequest

DescriptionResourcePathLocationType The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the build path then try building this projectdatacenterUnknownJava Problem

=============================

解決方法:

1:是未匯入tomcat,引入tomcat解決

2:上網查了下,說是servlet包沒有匯入的問題,我找到C:/Tomcat 5.5/common/lib下,將servlet-api.jar這個jar包引進,問題解決。