eclipse 出現(xiàn)The import javax.servlet cannot be resolved 的錯誤如下:
解決方法如下:
在Eclipse中,右擊項(xiàng)目,選擇Build Path->configure build path->Libraries->Add External JARs,找到你計算機(jī)中tomcat的解壓路徑,在lib文件夾下選中"servlet-api.jar",添加點(diǎn)擊“確定”

eclipse 出現(xiàn)The import javax.servlet cannot be resolved 的錯誤如下:
解決方法如下:
在Eclipse中,右擊項(xiàng)目,選擇Build Path->configure build path->Libraries->Add External JARs,找到你計算機(jī)中tomcat的解壓路徑,在lib文件夾下選中"servlet-api.jar",添加點(diǎn)擊“確定”