The import javax.servlet cannot be resolved 的解決方法

右擊項目,選擇Build Path->configure build path Libraries->Add External JARs,點擊classpath 找到計算機中tomcat的解壓路徑,在lib文件夾下選中"servlet-api.jar",apply and close
相關文章
相關標籤/搜索